Skip to content

Commit 61f4ee9

Browse files
authored
fix(resolve): remove unnecessary generics from CustomAsyncPolicy (#452)
1 parent e8f99cd commit 61f4ee9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/resolve/interface.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,9 @@ export interface ResolvePolicy {
201201

202202
export type PolicyWhen = 'LAZY' | 'EAGER';
203203
export type PolicyAsync = 'WAIT' | 'NOWAIT' | CustomAsyncPolicy;
204-
export type CustomAsyncPolicy = <TResolveFnResult, TResolveValue>(data: TResolveFnResult) => Promise<TResolveValue>;
204+
export interface CustomAsyncPolicy {
205+
(data: any): Promise<any>;
206+
}
205207

206208
/** @internalapi */
207209
export let resolvePolicies = {

0 commit comments

Comments
 (0)