Skip to content

Commit

Permalink
fix(resolve): remove unnecessary generics from CustomAsyncPolicy (#452)
Browse files Browse the repository at this point in the history
  • Loading branch information
wawyed authored Sep 27, 2019
1 parent e8f99cd commit 61f4ee9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/resolve/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,9 @@ export interface ResolvePolicy {

export type PolicyWhen = 'LAZY' | 'EAGER';
export type PolicyAsync = 'WAIT' | 'NOWAIT' | CustomAsyncPolicy;
export type CustomAsyncPolicy = <TResolveFnResult, TResolveValue>(data: TResolveFnResult) => Promise<TResolveValue>;
export interface CustomAsyncPolicy {
(data: any): Promise<any>;
}

/** @internalapi */
export let resolvePolicies = {
Expand Down

0 comments on commit 61f4ee9

Please sign in to comment.