refactor: rename shared package to core (#24309)

This commit is contained in:
Dax 2026-04-25 10:59:17 -04:00 committed by GitHub
commit 62ef2a2207
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
166 changed files with 218 additions and 218 deletions

View file

@ -0,0 +1,11 @@
export function lazy<T>(fn: () => T) {
let value: T | undefined
let loaded = false
return (): T => {
if (loaded) return value as T
loaded = true
value = fn()
return value as T
}
}