@types/voucher-code-generator
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

Installation

npm install --save @types/voucher-code-generator

Summary

This package contains type definitions for voucher-code-generator (http://www.voucherify.io/).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/voucher-code-generator.

index.d.ts

/*~ If this module has methods, declare them as functions like so.
 */
export function charset(name: "numbers" | "alphabetic" | "alphanumeric"): string;
export function generate(config?: generatorConfig): string[];

/*~ You can declare types that are available via importing the module */
export interface generatorConfig {
    length?: number | undefined;
    count?: number | undefined;
    charset?: string | undefined;
    prefix?: string | undefined;
    postfix?: string | undefined;
    pattern?: string | undefined;
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by João Moura.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/voucher-code-generator

Weekly Downloads

6,698

Version

1.1.3

License

MIT

Unpacked Size

3.68 kB

Total Files

5

Last publish

Collaborators

  • types