Skip to content

Commit cb62a7e

Browse files
committed
docs: ✏️ add ts limitations section
1 parent 1a854c9 commit cb62a7e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: docs/preprocessing.md

+2
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,8 @@ You can check the [Stylus API reference](https://stylus-lang.com/docs/js.html) f
345345

346346
You can check the [`compilerOptions` reference](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html) for specific TypeScript options.
347347

348+
#### Typescript - Limitations
349+
348350
Since `v4`, `svelte-preprocess` doesn't type-check your component, its only concern is to transpile it into valid JavaScript for the compiler. If you want to have your components type-checked, you can use [svelte-check](https://github.com/sveltejs/language-tools/blob/master/packages/svelte-check/README.md).
349351

350352
As we're only transpiling, it's not possible to import types or interfaces into your svelte component without using the new TS 3.8 `type` import modifier: `import type { SomeInterface } from './MyModule'` otherwise bundlers will complain that the name is not exported by `MyModule`.

0 commit comments

Comments
 (0)