mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
Merge pull request #4925 from stpettersens/master
Type definitions and tests for node random-string module
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
/// <reference path="random-string.d.ts" />
|
||||
|
||||
import randomString = require('random-string');
|
||||
|
||||
console.log(randomString());
|
||||
console.log(randomString({
|
||||
length: 20,
|
||||
numeric: true,
|
||||
letters: true,
|
||||
special: true
|
||||
}));
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
// Type definitions for random-string
|
||||
// Project: https://github.com/valiton/node-random-string
|
||||
// Definitions by: Sam Saint-Pettersen <https://github.com/stpettersens>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module "random-string" {
|
||||
function randomString(opts?: Object): string;
|
||||
export = randomString;
|
||||
}
|
||||
Reference in New Issue
Block a user