Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error with TypeScript 4.9.5 #35

Open
Loginov-Sergei opened this issue Jun 14, 2023 · 0 comments · May be fixed by #38
Open

Compilation error with TypeScript 4.9.5 #35

Loginov-Sergei opened this issue Jun 14, 2023 · 0 comments · May be fixed by #38

Comments

@Loginov-Sergei
Copy link

We use [email protected] in our project and it worked well with [email protected]. But recently we had to update TypeScript version up to 4.9.5 and now we are facing with the following compilation error:

node_modules/.pnpm/[email protected]/node_modules/brandi/lib/typings/types.d.ts:5:70 - error TS2344: Type 'T' does not satisfy the constraint 'object'.

5 export declare type UnknownCreator<T = unknown> = UnknownConstructor | UnknownFunction;
~

node_modules/.pnpm/[email protected]/node_modules/brandi/lib/typings/types.d.ts:5:36
5 export declare type UnknownCreator<T = unknown> = UnknownConstructor | UnknownFunction;
~~~~~~~~~~~
This type parameter might need an extends object constraint.

Could you fix it?

@yanisurbis yanisurbis linked a pull request Jul 7, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant