From 3834d9ab1332f2937c935ada5e76623290efae81 Mon Sep 17 00:00:00 2001 From: Luke John Date: Fri, 2 Oct 2020 02:08:55 +0800 Subject: [PATCH] fix(deno): update types for deno ^1.4.0 (#100) 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) => {