UNPKG

@vendure/core

Version:

A modern, headless ecommerce framework

9 lines (8 loc) 339 B
/** * @description * Performs a case-insensitive comparison of two coupon codes. * Centralizes the normalization logic so that if it ever needs to change * (e.g. trimming whitespace, using `toLocaleLowerCase()`), only this * single function needs updating. */ export declare function couponCodesMatch(a: string, b: string): boolean;