From 81ce4499e7da7baf421b85b4a188d1a63569cab4 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Wed, 12 Aug 2020 11:01:36 +0100 Subject: fix: Make std work with isolatedModules (#7016) --- docs/getting_started/typescript.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/getting_started/typescript.md') diff --git a/docs/getting_started/typescript.md b/docs/getting_started/typescript.md index 2fb00f98f..0a89b8a6c 100644 --- a/docs/getting_started/typescript.md +++ b/docs/getting_started/typescript.md @@ -30,9 +30,9 @@ information. For this purpose TypeScript provides the To export a type in a different file use `export type { AnInterface } from "./mod.ts";`. To import a type use `import type { AnInterface } from "./mod.ts";`. You can check that you are using -`import type` and `export type` where necessary by setting the -`importsNotUsedAsValues` TypeScript compiler option to `"error"`. You can see an -example `tsconfig.json` with this option +`import type` and `export type` where necessary by setting the `isolatedModules` +TypeScript compiler option to `true`. You can see an example `tsconfig.json` +with this option [in the standard library](https://github.com/denoland/deno/blob/master/std/tsconfig_test.json). Because there is no type information when using `--no-check`, `const enum` is -- cgit v1.2.3