Askr
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.

capturetype

capture: <T>(fn: () => T) => () => T

ontype

on: (target: EventTarget, event: string, handler: EventListener, options?: ListenerOptions) => void

resourcetype

resource: <T, const TDeps extends readonly unknown[]>(fn: (opts: { signal: AbortSignal; }) => PromiseLike<T> | T, deps: TDeps) => ResourceResult<T>

routeActivetype

routeActive: (pathOrPaths: string | readonly string[]) => ActivityPredicate

streamtype

stream: <T>(_source: unknown, _options?: Record<string, unknown>) => { value: T | null; pending: boolean; error: Error | null; }

tasktype

task: (fn: () => void | (() => void) | PromiseLike<void | (() => void)>) => void

timertype

timer: (intervalMs: number, fn: () => void, options?: TimerOptions) => void