node-chatgpt-api icon indicating copy to clipboard operation
node-chatgpt-api copied to clipboard

Feature Request: Typed Docs

Open KevinKWZheng opened this issue 2 years ago • 6 comments

Thanks @waylaidwanderer for this excellent work. But as a TypeScript developer, I wanted to ask if it is possible to add a typescript documentation when available.

KevinKWZheng avatar Feb 16 '23 01:02 KevinKWZheng

Thanks. I personally don't use TS, though maybe I should since I see the value. PRs are welcome since this will probably be a lower-priority item for me.

waylaidwanderer avatar Feb 17 '23 07:02 waylaidwanderer

@KevinKaiwenZheng Perhaps for the time being you could refer to this project https://github.com/transitive-bullshit/chatgpt-api/blob/main/src/types.ts which this api originally based.

likev avatar Feb 20 '23 15:02 likev

@likev Not really relevant here; the APIs are completely different now.

waylaidwanderer avatar Feb 20 '23 23:02 waylaidwanderer

@waylaidwanderer I personally don't use TS too which is why i prefer your current version。

likev avatar Feb 21 '23 00:02 likev

I think I can complete the .d.ts file. I done my work then I would do

weykon avatar Mar 18 '23 06:03 weykon

I think I can complete the .d.ts file. I done my work then I would do

https://gist.github.com/weykon/c0bfab2c8afcc73f686fa8ed4136a2e3 I just wrote one d.ts for ChatGPTClient.js

weykon avatar Mar 19 '23 10:03 weykon