Mention "import type" in TypeScript FAQ

pull/5243/head
Ben McCann 5 years ago committed by GitHub
parent d81cb83ae0
commit 34909e1376
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -10,3 +10,5 @@ To declare the type of a reactive variable in a Svelte template, you should use
let x: number; let x: number;
$: x = count + 1; $: x = count + 1;
``` ```
Also, to import an interface please use [TypeScript's `import type` syntax](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-8.html#type-only-imports-and-export).

Loading…
Cancel
Save