Skip to content

Commit

Permalink
feat: add typescript definition
Browse files Browse the repository at this point in the history
  • Loading branch information
sastan committed Jun 29, 2020
1 parent 2e6e821 commit 81a71da
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import type { SvelteComponent } from 'svelte'

declare function html(strings: TemplateStringsArray, ...values: unknown[]): SvelteComponent

export default html
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@
"module": "./dist/esm/html.js",
"unpkg": "./dist/umd/html.js",
"jsdelivr": "./dist/umd/html.js",
"types": "index.d.ts",
"sideEffects": false,
"files": [
"dist",
"index.d.ts",
"jsx-dev-runtime.js",
"jsx-runtime.js"
],
Expand Down

0 comments on commit 81a71da

Please sign in to comment.