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
Deno 1.4.0 introduced stricter checks on the import and export of types for all users using the --unstable flag. These (presumably) will be integrated with Deno stable in an upcoming release.
This request is to make the necessary changes to support these stricter checks, especially given eta requires the --unstable flag to run and thus is immediately broken by this latest release.
Import this module in a file and use deno run --unstable to execute the file.
Note there are several errors:
TS1371 [ERROR]: This import is never used as a value and must use 'import type' because the 'importsNotUsedAsValues' is set to 'error'.import { Priority } from "./types.ts";~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ at https://deno.land/x/negotiator@1.0.0/src/charset.ts:10:1TS1371 [ERROR]: This import is never used as a value and must use 'import type' because the 'importsNotUsedAsValues' is set to 'error'.import { Priority } from "./types.ts";~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ at https://deno.land/x/negotiator@1.0.0/src/encoding.ts:10:1TS1371 [ERROR]: This import is never used as a value and must use 'import type' because the 'importsNotUsedAsValues' is set to 'error'.import { Priority } from "./types.ts";~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ at https://deno.land/x/negotiator@1.0.0/src/language.ts:10:1TS1371 [ERROR]: This import is never used as a value and must use 'import type' because the 'importsNotUsedAsValues' is set to 'error'.import { Priority } from "./types.ts";~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ at https://deno.land/x/negotiator@1.0.0/src/media_type.ts:10:1
Expected behavior
The import should work without throwing typescript errors relating to type imports and exports.
Describe the bug
Deno 1.4.0 introduced stricter checks on the import and export of types for all users using the --unstable flag. These (presumably) will be integrated with Deno stable in an upcoming release.
This request is to make the necessary changes to support these stricter checks, especially given eta requires the
--unstable
flag to run and thus is immediately broken by this latest release.See relevant section in release blog post: https://deno.land/posts/v1.4#stricter-type-checks-in-code--unstablecode
To Reproduce
Import this module in a file and use
deno run --unstable
to execute the file.Note there are several errors:
Expected behavior
The import should work without throwing typescript errors relating to type imports and exports.
Package & Environment Details
Additional context
Encountered attempting to upgrade Opine to Deno 1.4.0
The text was updated successfully, but these errors were encountered: