Skip to content

Commit 942271a

Browse files
authored
uuid compatible for number
1 parent 5bc6214 commit 942271a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/uuid.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { sha1 } from "js-sha1";
22
import { UUID } from "./types.ts";
33

4-
export function stringToUuid(target: string): UUID {
4+
export function stringToUuid(target: string | number): UUID {
55
if (typeof target === "number") {
66
target = (target as number).toString();
77
}

0 commit comments

Comments
 (0)