Generated API snapshot
@askrjs/askr/resources
Exports from the declarations published in @askrjs/askr 0.0.59. Signatures are generated from the installed artifact.
@askrjs/askr/resources0.0.59
Exports
This entrypoint publishes 13 exports. Use the anchored symbol rows for direct links. Type-only exports are labeled separately from runtime values.
ActivityPredicatetype
ActivityPredicate: anycapturetype
capture: <T>(fn: () => T) => () => TdocumentVisibletype
documentVisible: () => ActivityPredicategetSignaltype
getSignal: () => AbortSignalontype
on: (target: EventTarget, event: string, handler: EventListener, options?: ListenerOptions) => voidresourcetype
resource: <T, const TDeps extends readonly unknown[]>(fn: (opts: { signal: AbortSignal; }) => PromiseLike<T> | T, deps: TDeps) => ResourceResult<T>ResourceResulttype
ResourceResult: anyrouteActivetype
routeActive: (pathOrPaths: string | readonly string[]) => ActivityPredicatestreamtype
stream: <T>(_source: unknown, _options?: Record<string, unknown>) => { value: T | null; pending: boolean; error: Error | null; }tasktype
task: (fn: () => void | (() => void) | PromiseLike<void | (() => void)>) => voidtimertype
timer: (intervalMs: number, fn: () => void, options?: TimerOptions) => voidTimerOptionstype
TimerOptions: anywindowFocusedtype
windowFocused: () => ActivityPredicate