tsedio / tsed

:triangular_ruler: Ts.ED is a Node.js and TypeScript framework on top of Express to write your application with TypeScript (or ES6). It provides a lot of decorators and guideline to make your code more readable and less error-prone. ⭐️ Star to support our work!
https://tsed.io/
MIT License
2.86k stars 284 forks source link

Fix autoinjectable with many args #2807

Closed Romakita closed 2 months ago

Romakita commented 2 months ago

Information

Type Breaking change
Fix No

Usage example

@AutoInjectable()
      class Test {
        constructor(
          public items: string[],
          public group: string,
          @Inject() logger?: Logger
        ) {
          expect(items).toEqual(["item1", "item2", "item3"]);
          expect(group).toBe("group");
          expect(logger).toBeInstanceOf(Logger);
        }
      }

      new Test(["item1", "item2", "item3"], "group");

Todos

Romakita commented 2 months ago

:tada: This PR is included in version 7.82.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: