Skip to content

Commit

Permalink
fix #1814 incorrect typing embedding for h and html
Browse files Browse the repository at this point in the history
  • Loading branch information
ocavue committed Jul 22, 2023
1 parent df43675 commit 43cbf65
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/beige-maps-notice.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"solid-js": patch
---

fix #1814 incorrect typing embedding for h and html
5 changes: 4 additions & 1 deletion packages/solid/h/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { createHyperScript } from "./hyperscript";
import type { HyperScript } from "./hyperscript";
import {
spread,
assign,
Expand All @@ -8,11 +9,13 @@ import {
SVGElements
} from "solid-js/web";

export default createHyperScript({
const h: HyperScript = createHyperScript({
spread,
assign,
insert,
createComponent,
dynamicProperty,
SVGElements
});

export default h;
5 changes: 4 additions & 1 deletion packages/solid/html/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { createHTML } from "./lit";
import type { HTMLTag } from "./lit";
import {
effect,
style,
Expand All @@ -22,7 +23,7 @@ import {
SVGNamespace
} from "solid-js/web";

export default createHTML({
const html: HTMLTag = createHTML({
effect,
style,
insert,
Expand All @@ -44,3 +45,5 @@ export default createHTML({
SVGElements,
SVGNamespace
});

export default html;

0 comments on commit 43cbf65

Please sign in to comment.