DenoDDeno
Powered by
dan.the.discloserD
Denoβ€’4y agoβ€’
14 replies
dan.the.discloser

How do I tell deno check to ignore this?

> deno check cli/color-test.ts config.ts


Check file:///Users/dan/xall/aStuff/cli/color-test.ts
error: TS2322 [ERROR]: Type 'string' is not assignable to type 'ENVIRONMENTS'.
const ENV: ENVIRONMENTS = the_env || "unspecified";
      ~~~
    at file:///Users/dan/xall/aStuff/cli/color-test.ts:6:7
> deno check cli/color-test.ts config.ts


Check file:///Users/dan/xall/aStuff/cli/color-test.ts
error: TS2322 [ERROR]: Type 'string' is not assignable to type 'ENVIRONMENTS'.
const ENV: ENVIRONMENTS = the_env || "unspecified";
      ~~~
    at file:///Users/dan/xall/aStuff/cli/color-test.ts:6:7
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

How do I run this npx command in Deno? (i tried)
catwithakeyboardCcatwithakeyboard / help
2y ago
Deno check fail
nemmind1Nnemmind1 / help
10mo ago