Installation
npm install --save @types/secure-random-string
Summary
This package contains type definitions for secure-random-string (https://github.com/S2-/securerandomstring).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/secure-random-string.
index.d.ts
declare function srs(options?: srs.Options): string;
declare function srs(cb: srs.Callback): void;
declare function srs(options: srs.Options, cb: srs.Callback): void;
declare namespace srs {
interface Options {
length?: number | undefined;
alphanumeric?: boolean | undefined;
}
type Callback = (error: Error | null, result?: string) => void;
}
export = srs;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: none
Credits
These definitions were written by Dominik Korsa.