Skip to content

Commit

Permalink
update portal children type
Browse files Browse the repository at this point in the history
  • Loading branch information
LankyMoose committed Apr 19, 2024
1 parent c460062 commit 9c8e6cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/lib/src/portal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Component } from "./component.js"
export { Portal }

type PortalProps = {
children?: JSX.Element
children?: JSX.Children
container: HTMLElement
}

Expand All @@ -17,6 +17,6 @@ class Portal extends Component<PortalProps> {
}

render(): JSX.Element {
return this.props.children ?? null
return (this.props.children as JSX.Element) ?? null
}
}

0 comments on commit 9c8e6cd

Please sign in to comment.