@defer.run/client
Advanced tools
Comparing version 0.2.2 to 0.2.3-alpha-20230103111659-01ee16f
{ | ||
"name": "@defer.run/client", | ||
"version": "0.2.2", | ||
"version": "0.2.3-alpha-20230103111659-01ee16f", | ||
"description": "cua JavaScript client", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -10,3 +10,3 @@ import type { Units } from "parse-duration"; | ||
export declare const init: ({ apiToken, apiUrl, debug: debugValue }: Options) => void; | ||
declare type UnPromise<F> = F extends Promise<infer R> ? R : F; | ||
export declare type UnPromise<F> = F extends Promise<infer R> ? R : F; | ||
export declare type DelayString = `${string}${Units}`; | ||
@@ -16,4 +16,4 @@ export interface DeferExecutionOptions { | ||
} | ||
declare type DeferRetFnParameters<F extends (...args: any | undefined) => Promise<any>> = [...first: Parameters<F>, options: DeferExecutionOptions]; | ||
interface DeferRetFn<F extends (...args: any | undefined) => Promise<any>> { | ||
export declare type DeferRetFnParameters<F extends (...args: any | undefined) => Promise<any>> = [...first: Parameters<F>, options: DeferExecutionOptions]; | ||
export interface DeferRetFn<F extends (...args: any | undefined) => Promise<any>> { | ||
(...args: Parameters<F>): ReturnType<F>; | ||
@@ -25,6 +25,6 @@ __fn: F; | ||
} | ||
interface DeferAwaitRetFn<F extends (...args: any | undefined) => Promise<any>> { | ||
export interface DeferAwaitRetFn<F extends (...args: any | undefined) => Promise<any>> { | ||
(...args: Parameters<F>): Promise<UnPromise<ReturnType<F>>>; | ||
} | ||
interface Defer { | ||
export interface Defer { | ||
<F extends (...args: any | undefined) => Promise<any>>(fn: F): DeferRetFn<F>; | ||
@@ -31,0 +31,0 @@ } |
Sorry, the diff of this file is not supported yet
25445