1.1.3 • Published 6 months ago
@types/secure-random-string v1.1.3
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
// Type definitions for secure-random-string 1.1
// Project: https://github.com/S2-/securerandomstring
// Definitions by: Dominik Korsa <https://github.com/dominik-korsa>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
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, 06 Jul 2021 16:34:27 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Dominik Korsa.