✨ 🚲 lazySchema.ts
This commit is contained in:
@@ -6,3 +6,4 @@ export function lazySchema<T>(factory: () => T): () => T {
|
||||
let cached: T | undefined
|
||||
return () => (cached ??= factory())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user