Skip to content

Commit 393519b

Browse files
committed
chore: Updated the README to include .d.ts in the SVG type def import
This is related to issue #70
1 parent 4d0f92a commit 393519b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,5 +221,9 @@ following import statement to `src/app.d.ts` (or any `.d.ts` file somewhere in t
221221
project where `tsc` can find it).
222222

223223
```ts
224-
import '@poppanator/sveltekit-svg/dist/svg'
224+
import '@poppanator/sveltekit-svg/dist/svg.d.ts'
225225
```
226+
227+
> **NOTE!** If you have `module`/`moduleResolution` set to `NodeNext` in your
228+
> Typescript config, you **MUST** include `.d.ts` in the import of the SVG
229+
> type definition.

0 commit comments

Comments
 (0)