Fixing typos and mistakes in uid-safe typing

This commit is contained in:
Joshua DeVinney
2016-09-20 10:49:21 -05:00
parent 19d3225986
commit 07fe82cac5
3 changed files with 4 additions and 5 deletions
+3 -4
View File
@@ -1,4 +1,4 @@
// Type definitions for co-body
// Type definitions for uid-safe
// Project: https://github.com/crypto-utils/uid-safe
// Definitions by: Joshua DeVinney <https://github.com/geoffreak>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -7,9 +7,8 @@ declare namespace UID {
export interface Generate {
(byteLenth: number, callback: (err: any, str: string) => any): void;
(byteLenth: number): Promise<any>;
(byteLenth: number, callback?: (err: any, str: string) => any): Promise<any> | void;
(byteLength: number, callback: (err: any, str: string) => any): void;
(byteLength: number): Promise<any>;
sync(byteLength: number): string;
}
+1 -1
View File
@@ -14,6 +14,6 @@
},
"files": [
"index.d.ts",
"fs-extra-promise-es6-tests.ts"
"uid-safe-tests.ts"
]
}