We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bc6214 commit 942271aCopy full SHA for 942271a
packages/core/src/uuid.ts
@@ -1,7 +1,7 @@
1
import { sha1 } from "js-sha1";
2
import { UUID } from "./types.ts";
3
4
-export function stringToUuid(target: string): UUID {
+export function stringToUuid(target: string | number): UUID {
5
if (typeof target === "number") {
6
target = (target as number).toString();
7
}
0 commit comments