Skip to content

Commit

Permalink
fix/24-fix-reader-type
Browse files Browse the repository at this point in the history
  • Loading branch information
Stradivario committed Dec 11, 2023
1 parent 7e7aa8f commit efa7aa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/di/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const clear = function () {
C = new WeakMap();
};

export type Reader<T, K> = (d?: T) => K;
export type Reader<T, K> = (...d: T[]) => K;
export function Reader<T>(...di: ObjectType<unknown>[]): MethodDecorator {
return (...[, , desc]: MethodDecoratorArguments) => {
const o = desc.value as () => unknown;
Expand Down

0 comments on commit efa7aa7

Please sign in to comment.