Skip to content

Commit

Permalink
Fix constructor return type inference for published npm.
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/Container.ts
  • Loading branch information
kburov-sc authored and mikalai-snap committed Nov 28, 2024
1 parent e2e3370 commit eeaa7dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/__tests__/Container.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ describe("Container", () => {
}
const containerWithService = container.providesClass("service", Item);
expect(containerWithService.get("service")).toEqual(new Item(1));
expect(containerWithService.factories.service().value).toBe(1);
});

test("error if class constructor arity doesn't match dependencies", () => {
Expand Down

0 comments on commit eeaa7dd

Please sign in to comment.