Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Commit

Permalink
spread options in LoadFunction type (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
Samantha Wong authored Feb 11, 2020
1 parent a55e646 commit 994ef71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export type LoadsConfig<Response, Err> = {
update?: LoadFunction<Response>;
variables?: Array<unknown> | (() => Array<unknown>);
};
export type LoadFunction<Response> = (opts?: any) => Promise<Response>;
export type LoadFunction<Response> = (...opts: any) => Promise<Response>;
export type LoadPolicy = 'cache-first' | 'cache-and-load' | 'load-only' | 'cache-only';
export type LoadingState =
| 'idle'
Expand Down

0 comments on commit 994ef71

Please sign in to comment.