Skip to content

Commit 434d0b4

Browse files
committed
fix: πŸ› add svelte component typings to ts type scope
1 parent 111d103 commit 434d0b4

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

β€Žpackage.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"node": ">= 7.6.0"
2222
},
2323
"files": [
24-
"dist/"
24+
"dist/",
25+
"svelte.d.ts"
2526
],
2627
"scripts": {
2728
"prebuild": "rm -rf dist/ && npm run lint",

β€Žsrc/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/// <reference path="../svelte.d.ts" />
2+
13
import { autoPreprocess } from './autoProcess';
24

35
// default auto processor

β€Žsvelte.d.ts

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/// <reference lib="dom" />
2+
/// <reference types="svelte/types/runtime" />

0 commit comments

Comments
Β (0)