UNPKG

@donverduyn/react-runtime

Version:
6 lines (5 loc) 248 B
import type { ScopeId } from '@/types'; export declare const createSingletonHook: <T, A extends [ScopeId, ...unknown[]]>(create: (...args: A) => T) => { (...args: A | [ScopeId]): NonNullable<T>; getByKey(scopeId: string): T | undefined; };