Last active
September 3, 2023 13:23
-
-
Save bertrandk/d26155a71380544f71d5 to your computer and use it in GitHub Desktop.
Typescript Voucher Code Generator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface VoucherCodeConfig { | |
length?: number; | |
count?: number; | |
charset?: string; | |
prefix?: string; | |
postfix?: string; | |
pattern?: string; | |
} | |
interface VoucherCodeGenerator { | |
generate(config?: VoucherCodeConfig): string[]; | |
} | |
declare var voucher_codes: VoucherCodeGenerator; | |
declare module 'voucher-code-generator' { | |
export = voucher_codes; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thnx