Portkey-AI / portkey-node-sdk

Build reliable, secure, and production-ready AI apps easily.
https://portkey.ai/docs
22 stars 8 forks source link

[Bug]: TS type-check build issue #84

Closed JrobT closed 3 months ago

JrobT commented 4 months ago

Contact Details

jacktrute@letsloopin.com

What happened?

Hey. I'm trying out Portkey within a Redwoodjs stack, but I get a TypeScript compile issue. I'm using "portkey-ai": "1.3.0".

Not sure if I can avoid in via tsconfig.json or not. I'm originally from a TS background so might be missing something. I've tried adding "skipLibCheck": true but that didn't help.

Version

0.1.xx (Default)

Relevant log output

../node_modules/portkey-ai/dist/src/client.ts:9:11 - error TS2612: Property 'apiKey' will overwrite the base property in 'ApiClient'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration.

9  override apiKey: string | null;
            ~~~~~~

../node_modules/portkey-ai/dist/src/client.ts:10:11 - error TS2612: Property 'baseURL' will overwrite the base property in 'ApiClient'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration.

10  override baseURL: string;
             ~~~~~~~

Found 2 errors in the same file, starting at: ../node_modules/portkey-ai/dist/src/client.ts:9

Code of Conduct