Skip to content

Typescript definition for the package

Thank you for this amazing utility/package. It has saved me a lot of time.

While using it, I realized that it lacks type definitions (#349 (closed) ). Having this in TypeScript or having a .d.ts would provide a better developer experience. With that said, I have created a .d.ts file based on the chatgpt.js file at the root of the repository. It is comprehensive; however, feel free to suggest improvements.

link to d.ts file

I can create a PR and make adjustments to include the agreed-upon d.ts file in every build.