We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5bc6214 + 942271a commit 539d2b2Copy full SHA for 539d2b2
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