Skip to content

Commit

Permalink
fix: Fix typing of different public decorators of injectable
Browse files Browse the repository at this point in the history
Signed-off-by: Iku-turso <[email protected]>
  • Loading branch information
Iku-turso committed Apr 19, 2024
1 parent 79e3d3a commit e975baf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/injectable/core/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ export type SpecificInjectionTargetDecorator<
inject: SpecificInject<InjectionInstance, InstantiationParam>,
) => SpecificInject<InjectionInstance, InstantiationParam>;
target:
| InjectionToken<InjectionInstance, InstantiationParam>
| InjectionToken<InjectionInstance, InstantiationParam, any>
| Injectable<InjectionInstance, InjectionTokenInstance, InstantiationParam>;
};

Expand Down Expand Up @@ -377,7 +377,7 @@ export type SpecificInstantiationTargetDecorator<
) => Instantiate<InjectionInstance, InstantiationParam>;

target:
| InjectionToken<InjectionInstance, InstantiationParam>
| InjectionToken<InjectionInstance, InstantiationParam, any>
| Injectable<InjectionInstance, InjectionTokenInstance, InstantiationParam>;
};

Expand Down

0 comments on commit e975baf

Please sign in to comment.