Hi, i'm trying to update to node-appwrite v1.2.1 but when I try to build my application I get type errors within node-appwrite/index.d.ts.
They are all more or less the same, for example:
node_modules/node-appwrite/index.d.ts:2699:34 - error TS2749: 'AuthenticatorType' refers to a value, but is being used as a type here. Did you mean 'typeof AuthenticatorType'?
2699 createMfaAuthenticator(type: AuthenticatorType): Promise<Models.MfaType>;
I'm using Node v20.9.0 and TypeScript 5.4.3.
Is this an issue on my end or do I have to wait on new types to be published?
TL;DR
Developers are encountering type errors in node-appwrite/index.d.ts after updating to node-appwrite v1.2.1. The error 'AuthenticatorType' refers to a value, but is being used as a type. They are using Node v20.9.0 and TypeScript 5.4.3. This could be an issue with the types or a compatibility problem between versions. One approach could be waiting for new types to be published or checking for compatibility issues.