Generated API snapshot
@askrjs/askr/foundations/state
Exports from the declarations published in @askrjs/askr 0.0.59. Signatures are generated from the installed artifact.
@askrjs/askr/foundations/state0.0.59
Exports
This entrypoint publishes 5 exports. Use the anchored symbol rows for direct links. Type-only exports are labeled separately from runtime values.
controllableStatetype
controllableState: <T>(options: { value: T | undefined; defaultValue: T; onChange?: (next: T) => void; }) => ControllableState<T>ControllableStatetype
ControllableState: anyisControlledtype
isControlled: <T>(value: T | undefined) => value is TmakeControllabletype
makeControllable: <T>(options: { value: T | undefined; defaultValue: T; onChange?: (next: T) => void; setInternal?: (next: T) => void; }) => { set: (next: T) => void; isControlled: boolean; }resolveControllabletype
resolveControllable: <T>(value: T | undefined, defaultValue: T) => { value: T; isControlled: boolean; }