node-openai icon indicating copy to clipboard operation
node-openai copied to clipboard

[Deno support] Types not found

Open isaced opened this issue 2 years ago • 1 comments

When I use Deno (npm via CDNs), node-openai doesn't have any type declarations:

image
$ deno run --allow-all main.ts
https://esm.sh/v111/[email protected]/lib/types/index.d.ts // long wait...

I try to view the file content on the CDN: https://esm.sh/v111/[email protected]/lib/types/index.d.ts

Types not found

ENV:

deno 1.31.1 (release, x86_64-apple-darwin) v8 11.0.226.13 typescript 4.9.4

isaced avatar Mar 11 '23 15:03 isaced

I don't know why yet, but passing @deno-types temporarily and use unpkg(https://unpkg.com/[email protected]/lib/types/index.d.ts) solves the problem.

image

isaced avatar Mar 11 '23 15:03 isaced