Compilation Error: Interface Property Initializer in client.d.ts
raslasarslas opened this issue · comments
RANDRIAMILASOA Stanislas commented
Hello
When attempting to compile a project that includes @mistralai/mistralai
as a dependency, TypeScript compilation fails with an error related to an interface property having an initializer.
Error Output
$ tsc
node_modules/@mistralai/mistralai/src/client.d.ts:49:26 - error TS1246: An interface property cannot have an initializer.
49 type: ToolType = ToolType.function;
~~~~~~~~~~~~~~~~~
Steps to Reproduce
- Include
@mistralai/mistralai
in a TypeScript project. - Run the TypeScript compiler (tsc).
- Observe the compilation error related to
client.d.ts
.
Environment
- TypeScript Version: 4.9.5
- @mistralai/mistralai Version: 0.1.3
- Node.js Version: v18.13.0
Fernando Oliveira Silva commented
Hello
When attempting to compile a project that includes
@mistralai/mistralai
as a dependency, TypeScript compilation fails with an error related to an interface property having an initializer.Error Output
$ tsc node_modules/@mistralai/mistralai/src/client.d.ts:49:26 - error TS1246: An interface property cannot have an initializer. 49 type: ToolType = ToolType.function; ~~~~~~~~~~~~~~~~~
Steps to Reproduce
- Include
@mistralai/mistralai
in a TypeScript project.- Run the TypeScript compiler (tsc).
- Observe the compilation error related to
client.d.ts
.Environment
- TypeScript Version: 4.9.5
- @mistralai/mistralai Version: 0.1.3
- Node.js Version: v18.13.0
Hi, I have the same issue.
Do you have any workarounds to fix it?
Thanks.