🚲 lazySchema.ts

This commit is contained in:
nirholas
2026-03-31 10:24:20 +00:00
parent 1fe05b5d63
commit 30156de5b8

View File

@@ -6,3 +6,4 @@ export function lazySchema<T>(factory: () => T): () => T {
let cached: T | undefined
return () => (cached ??= factory())
}