1.1.3 • Published 6 months ago

@types/voucher-code-generator v1.1.3

Weekly downloads
1,558
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for voucher-code-generator 1.1
// Project: http://www.voucherify.io/
// Definitions by: João Moura <https://github.com/JWebCoder>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/*~ 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: Fri, 02 Jul 2021 18:05:09 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by João Moura.

1.1.3

6 months ago

1.1.2

7 months ago

1.1.1

3 years ago

1.1.0

5 years ago