mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 07:47:04 +00:00
Fixing typos and mistakes in uid-safe typing
This commit is contained in:
Vendored
+3
-4
@@ -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;
|
||||
}
|
||||
|
||||
@@ -14,6 +14,6 @@
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"fs-extra-promise-es6-tests.ts"
|
||||
"uid-safe-tests.ts"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user