Skip to content

Commit 61188e2

Browse files
committed
fix(reactant-module): fix type issue
1 parent 29037e1 commit 61188e2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/reactant-module/src/interfaces.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,9 @@ export type FirstParameter<T extends (...args: any) => any> = T extends (
149149
: never;
150150

151151
type Collection<T> = {
152-
[P in Exclude<keyof T, keyof Service>]-?: NonNullable<T[P]>[];
152+
[P in Exclude<keyof T, keyof Service | typeof storeKey>]-?: NonNullable<
153+
T[P]
154+
>[];
153155
};
154156

155157
export type PluginHooks = Collection<PluginModule>;

0 commit comments

Comments
 (0)