summaryrefslogtreecommitdiff
path: root/docs/getting_started/typescript.md
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2020-08-12 11:01:36 +0100
committerGitHub <noreply@github.com>2020-08-12 12:01:36 +0200
commit81ce4499e7da7baf421b85b4a188d1a63569cab4 (patch)
tree04258e9763850f32f3300a063e32bb8ace5b6a60 /docs/getting_started/typescript.md
parent58f86e063ab4d3e022b94f8f3c6a6a796ee9f749 (diff)
fix: Make std work with isolatedModules (#7016)
Diffstat (limited to 'docs/getting_started/typescript.md')
-rw-r--r--docs/getting_started/typescript.md6
1 files changed, 3 insertions, 3 deletions
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