From 230f69088471ae356e6ee5742d8d0c54ce1dc227 Mon Sep 17 00:00:00 2001 From: "luke.john" Date: Wed, 30 Sep 2020 22:37:03 +0800 Subject: [PATCH] fix(deno): update types for deno ^1.4.0 In version 1.4 Deno adopted; - the tsconfig setting [importsNotUsedAsValues](https://www.typescriptlang.org/tsconfig#importsNotUsedAsValues) - https://github.com/denoland/deno/pull/7413 This requires the use of; - type only imports for values which are only used as types (`importsNotUsedAsValues`) --- deno.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deno.ts b/deno.ts index b743c4f2..feae3e4f 100644 --- a/deno.ts +++ b/deno.ts @@ -1,5 +1,5 @@ import { y18n as _y18n } from './build/lib/index.js' -import { Y18NOpts } from './build/lib/index.d.ts' +import type { Y18NOpts } from './build/lib/index.d.ts' import shim from './lib/platform-shims/deno.ts' const y18n = (opts: Y18NOpts) => {