diff --git a/packages/universal/debug/src/call-stack/debug/stack.ts b/packages/universal/debug/src/call-stack/debug/stack.ts index b5a125bf..df033cb0 100644 --- a/packages/universal/debug/src/call-stack/debug/stack.ts +++ b/packages/universal/debug/src/call-stack/debug/stack.ts @@ -33,7 +33,7 @@ export function callerStack( "An error created in the internals of Stack.create", ).stack; - verify(stack, hasType("string")); + verify?.(stack, hasType("string")); return callStack(stack)?.slice(internal + CALLER); } } diff --git a/packages/universal/verify/index.ts b/packages/universal/verify/index.ts index 47415c63..61324aca 100644 --- a/packages/universal/verify/index.ts +++ b/packages/universal/verify/index.ts @@ -30,6 +30,6 @@ export const expected: typeof expectedDev = import.meta.env.DEV ? expectedDev : export const hasType: typeof hasTypeDev = import.meta.env.DEV ? hasTypeDev : (noop as typeof hasTypeDev) export const isOneOf: typeof isOneOfDev = import.meta.env.DEV ? isOneOfDev : (noop as typeof isOneOfDev) -export const verify: VerifyFn | null = import.meta.env.DEV +export const verify: VerifyFn = import.meta.env.DEV ? verifyDev - : null; + : null as unknown as VerifyFn;