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 69b7dc6 commit f77e20f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import type { SvelteComponent } from 'svelte'

declare function h(
type: string | SvelteComponent,
props: Record<string, unknown>,
...children: unknown[]
): SvelteComponent

export default h
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"module": "./dist/esm/h.js",
"unpkg": "./dist/umd/h.js",
"jsdelivr": "./dist/umd/h.js",
"types": "index.d.ts",
"sideEffects": false,
"files": [
"dist"
Expand Down

0 comments on commit f77e20f

Please sign in to comment.