@lit-labs/task
Advanced tools
Comparing version 3.0.1 to 3.0.2
import { ReactiveControllerHost } from '@lit/reactive-element/reactive-controller.js'; | ||
export interface TaskFunctionOptions { | ||
signal?: AbortSignal; | ||
signal: AbortSignal; | ||
} | ||
export declare type TaskFunction<D extends ReadonlyArray<unknown>, R = unknown> = (args: D, options?: TaskFunctionOptions) => R | typeof initialState | Promise<R | typeof initialState>; | ||
export declare type TaskFunction<D extends ReadonlyArray<unknown>, R = unknown> = (args: D, options: TaskFunctionOptions) => R | typeof initialState | Promise<R | typeof initialState>; | ||
export declare type ArgsFunction<D extends ReadonlyArray<unknown>> = () => D; | ||
@@ -7,0 +7,0 @@ export { ArgsFunction as DepsFunction }; |
{ | ||
"name": "@lit-labs/task", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "A controller for Lit that renders asynchronous tasks.", | ||
@@ -5,0 +5,0 @@ "license": "BSD-3-Clause", |
import { ReactiveControllerHost } from '@lit/reactive-element/reactive-controller.js'; | ||
export interface TaskFunctionOptions { | ||
signal?: AbortSignal; | ||
signal: AbortSignal; | ||
} | ||
export declare type TaskFunction<D extends ReadonlyArray<unknown>, R = unknown> = (args: D, options?: TaskFunctionOptions) => R | typeof initialState | Promise<R | typeof initialState>; | ||
export declare type TaskFunction<D extends ReadonlyArray<unknown>, R = unknown> = (args: D, options: TaskFunctionOptions) => R | typeof initialState | Promise<R | typeof initialState>; | ||
export declare type ArgsFunction<D extends ReadonlyArray<unknown>> = () => D; | ||
@@ -7,0 +7,0 @@ export { ArgsFunction as DepsFunction }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
104944