DefinitelyTyped/types/crypto-random-string/index.d.ts
Manuel Warum 94f81483b9 Adding types for crypto-random-string 1.0 (#27686)
* 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
2018-08-03 10:45:51 -07:00

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;