Skip to content

Commit

Permalink
Fix isServer const type
Browse files Browse the repository at this point in the history
  • Loading branch information
thetarnav committed Feb 22, 2023
1 parent 676ed33 commit 2c7242d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/brown-tips-remain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"solid-js": patch
---

Correct the type of `isServer` const to `boolean` from `false`.
3 changes: 2 additions & 1 deletion packages/solid/web/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ export {
} from "solid-js";

export * from "./server-mock.js";
export const isServer = false;

export const isServer: boolean = false;
const SVG_NAMESPACE = "http://www.w3.org/2000/svg";

function createElement(tagName: string, isSVG = false): HTMLElement | SVGElement {
Expand Down

0 comments on commit 2c7242d

Please sign in to comment.