From 07fe82cac5529e424c62fc5da8c1502a43ae8a90 Mon Sep 17 00:00:00 2001 From: Joshua DeVinney Date: Tue, 20 Sep 2016 10:49:21 -0500 Subject: [PATCH] Fixing typos and mistakes in uid-safe typing --- uid-safe/index.d.ts | 7 +++---- uid-safe/tsconfig.json | 2 +- uid-safe/{uid-safe-test.ts => uid-safe-tests.ts} | 0 3 files changed, 4 insertions(+), 5 deletions(-) rename uid-safe/{uid-safe-test.ts => uid-safe-tests.ts} (100%) diff --git a/uid-safe/index.d.ts b/uid-safe/index.d.ts index 9892734e1c..d64c14ad4f 100644 --- a/uid-safe/index.d.ts +++ b/uid-safe/index.d.ts @@ -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 // 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; - (byteLenth: number, callback?: (err: any, str: string) => any): Promise | void; + (byteLength: number, callback: (err: any, str: string) => any): void; + (byteLength: number): Promise; sync(byteLength: number): string; } diff --git a/uid-safe/tsconfig.json b/uid-safe/tsconfig.json index a0bda21ebe..5c29fae11c 100644 --- a/uid-safe/tsconfig.json +++ b/uid-safe/tsconfig.json @@ -14,6 +14,6 @@ }, "files": [ "index.d.ts", - "fs-extra-promise-es6-tests.ts" + "uid-safe-tests.ts" ] } \ No newline at end of file diff --git a/uid-safe/uid-safe-test.ts b/uid-safe/uid-safe-tests.ts similarity index 100% rename from uid-safe/uid-safe-test.ts rename to uid-safe/uid-safe-tests.ts