Skip to content

Commit

Permalink
Meta: type
Browse files Browse the repository at this point in the history
  • Loading branch information
chrispuska committed Jan 7, 2024
1 parent f74ad69 commit 3551649
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/utils/uuid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import crypto from "crypto"
const IS_TEST: boolean = process.env.NODE_ENV === "test"
export const TEST_UUID: string = "00000000-0000-0000-0000-000000000000" as const

export const getUUID = (id?: unknown) => {
export const getUUID = (id?: unknown): string | unknown => {
if (!!id) return id

// this is necessary for snapshot tests, but should be dynamic.
Expand Down

0 comments on commit 3551649

Please sign in to comment.