cryptiles: add initial typing for 3.1

This commit is contained in:
Alex Wendland
2017-06-16 16:03:01 -04:00
parent 19ff1167c1
commit 21924e59bb
4 changed files with 49 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
import * as cryptiles from "cryptiles";
cryptiles.randomString(0); // $ExpectType string
cryptiles.randomDigits(0); // $ExpectType string
cryptiles.fixedTimeComparison("", ""); // $ExpectTpe boolean