Add a new type definition for Randomstring (#9252)

* Create randomstring-tests.ts

* Create randomstring.d.ts
This commit is contained in:
Isman Usoh
2016-05-09 17:38:42 +09:00
committed by Horiuchi_H
parent d9e73fad7d
commit b332be4e13
2 changed files with 37 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
/// <reference path="randomstring.d.ts" />
import * as randomstring from "randomstring";
randomstring.generate();
randomstring.generate(24);
randomstring.generate({
length: 12,
readable: true,
capitalization: "",
charset: "alphabetic"
});
randomstring.generate({
charset: "abc"
});