-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deno: types/index.d.ts missing in deno.land registry. #287
Comments
Quick work-around is to use an {
"imports": {
"https://deno.land/x/postgresjs@v3.0.0/types/index.d.ts": "https://raw.githubusercontent.com/porsager/postgres/v3.0.0/types/index.d.ts"
}
} And then add a // @deno-types="https://raw.githubusercontent.com/porsager/postgres/v3.0.0/types/index.d.ts" |
Ah - that makes sense, I've forgotten to copy the types to the deno folder (not a typescript user - sorry).. There's no way to get that into the 3.0.0 release now right? |
@porsager Seems this is not possible. Deno documentation says:
|
Yeah, I actually like that :) Will do a new release then.. Besides the suggestions you wrote above, would it not be equally fine to simply put the types in the deno folder as well? In that case would I need to copy only the /types/index.d.ts or also the tsconfig.json? |
AFAIK copying I saw the other module repo by @Minigugus which also includes So copying |
I like that fix - thank you! |
Very nice! It solves the problem. For some reason I also have to import a specific version of Code (fetches imports, no need for import "https://deno.land/std@0.120.0/node/querystring.ts"
import postgres from "https://cdn.jsdelivr.net/gh/porsager/postgres@master/deno/mod.js" Command:
|
Cool :) If you figure out a way we can fix the querystring issue with a change to Postgres.js let me know and I'll include that. |
Deno tries to fetch postgres typescript types on each run and seems to fail.
mod.ts
requires the types which are missing in the deno.land registry: https://deno.land/x/postgresjs@v3.0.0/types/index.d.tsPostgres.js version: 3.0.0
Great library!
The text was updated successfully, but these errors were encountered: