Closed devsheva closed 2 months ago
Include deno.unstable
in compilerOptions.lib
:
{
"unstable": ["cron"],
"exclude": ["dist", "node_modules"],
"compilerOptions": {
"lib": ["deno.window", "deno.unstable", "DOM", "DOM.Iterable", "ESNext"],
"strict": true,
"allowJs": true
}
}
oh, that worked. maybe it should be added to docs?
Describe the bug I have tried to enable unstable Cron API, but what i get is this
Property 'cron' does not exist on type 'typeof Deno'.deno-ts(2339)
To Reproduce
deno.jsonc
Put this in any file
Expected behavior
It should not lead to type error.
Screenshots
Versions
vscode: 1.91.1 deno:1.45.4 extension: 3.38.0