Skip to content

Commit 2e09800

Browse files
committed
fix: simplify type for v3 and v5
1 parent f8919a2 commit 2e09800

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

src/v3.ts

-12
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,6 @@ import v35, { DNS, URL } from './v35.js';
44

55
export { DNS, URL } from './v35.js';
66

7-
function v3(
8-
value: string | Uint8Array,
9-
namespace: UUIDTypes,
10-
buf?: undefined,
11-
offset?: number
12-
): string;
13-
function v3(
14-
value: string | Uint8Array,
15-
namespace: UUIDTypes,
16-
buf: Uint8Array,
17-
offset?: number
18-
): Uint8Array;
197
function v3(value: string | Uint8Array, namespace: UUIDTypes, buf?: Uint8Array, offset?: number) {
208
return v35(0x30, md5, value, namespace, buf, offset);
219
}

src/v5.ts

-12
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,6 @@ import v35, { DNS, URL } from './v35.js';
44

55
export { DNS, URL } from './v35.js';
66

7-
function v5(
8-
value: string | Uint8Array,
9-
namespace: UUIDTypes,
10-
buf?: undefined,
11-
offset?: number
12-
): string;
13-
function v5(
14-
value: string | Uint8Array,
15-
namespace: UUIDTypes,
16-
buf: Uint8Array,
17-
offset?: number
18-
): Uint8Array;
197
function v5(value: string | Uint8Array, namespace: UUIDTypes, buf?: Uint8Array, offset?: number) {
208
return v35(0x50, sha1, value, namespace, buf, offset);
219
}

0 commit comments

Comments
 (0)