You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know I can use the type definition for the deno CLI instead, but it would be nice if I could find out by type checking that I'm using an API that exists in the CLI but not in deploy.
For anyone looking for a fix, I couldn't get the types working via a deno settings file as recommended by jsejcksn here: denoland/deployctl#24 (comment)
I could only get this to work with the tripple slash method.
pipe the types from deployctl to a local file with the command deployctl types > deploy.d.ts
reference/import the types where you want to use them: /// <reference path="./deploy.d.ts" />
I have created https://deno.land/x/deploy_type_checker to typecheck a deno deploy project.
We can run type checking with command deno run --allow-read --allow-run https://deno.land/x/deploy_type_checker@v0.0.4/type_check.ts ./your_code.ts.
We can use this until we get the official type check command.
How do I get the latest type definition for deno deploy?
The type definitions at https://deno.land/x/deploy@0.4.0/types/deploy.window.d.ts are out of date (no URLPattern API) and the repository is archived.
I know I can use the type definition for the deno CLI instead, but it would be nice if I could find out by type checking that I'm using an API that exists in the CLI but not in deploy.
related denoland/deployctl#24, denoland/deployctl#53
The text was updated successfully, but these errors were encountered: