mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Adding types for crypto-random-string 1.0 * Fixup in last commit wrt review * Fixing import of crypto-random-string test * Changing tslint.json as per review
14 lines
491 B
TypeScript
14 lines
491 B
TypeScript
// Type definitions for crypto-random-string 1.0
|
|
// Project: https://github.com/sindresorhus/crypto-random-string
|
|
// Definitions by: Manuel Warum <https://github.com/MrManny>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/**
|
|
* Generate a hexadecimal string of the given length.
|
|
* @param length the length of the random string.
|
|
* @return a string of the specified length.
|
|
*/
|
|
declare function cryptoRandomString(length: number): string;
|
|
|
|
export = cryptoRandomString;
|