Skip to content

Commit

Permalink
[react-dom]: Update createPortal 'key' parameter to include number (D…
Browse files Browse the repository at this point in the history
  • Loading branch information
ysgk authored Oct 11, 2024
1 parent 63d3681 commit 8437174
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion types/react-dom/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
DOMAttributes,
DOMElement,
FunctionComponentElement,
Key,
ReactElement,
ReactInstance,
ReactNode,
Expand All @@ -29,7 +30,7 @@ export function unmountComponentAtNode(container: Element | DocumentFragment): b
export function createPortal(
children: ReactNode,
container: Element | DocumentFragment,
key?: null | string,
key?: Key | null,
): ReactPortal;

export const version: string;
Expand Down

0 comments on commit 8437174

Please sign in to comment.