From 3ec983e4ccbb3375370be02eec81554e7ee83954 Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Wed, 5 Aug 2020 08:25:31 -0700 Subject: [PATCH] Add example --- site/content/faq/500-what-about-typescript-support.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/site/content/faq/500-what-about-typescript-support.md b/site/content/faq/500-what-about-typescript-support.md index 2a4954b85d..be0825215b 100644 --- a/site/content/faq/500-what-about-typescript-support.md +++ b/site/content/faq/500-what-about-typescript-support.md @@ -12,3 +12,7 @@ $: x = count + 1; ``` To `import` a type or interface make sure to use [TypeScript's `type` modifier](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-8.html#type-only-imports-and-export): + +``` +import type { SomeInterface } from './SomeFile'; +```