n-digit-token
Version:
Cryptographically secure pseudo-random token of n digits
10 lines (9 loc) • 314 B
TypeScript
import type { Options } from '../types';
/**
* Validates input options.
* Please read the README for more information.
* @param {number} length
* @param {Options} [options]
* @throws {error} if called with invalid options
*/
export declare const validateOptions: (length: number, options?: Options) => void;