Remove dependency resolution override for React 19 types (#39569)
Co-authored-by: ChaosExAnima <ChaosExAnima@users.noreply.github.com>
This commit is contained in:
1 parent
f440615b01
commit
f2e10fd5db
52 files changed
+112
-110
No files matched your search
@@ -20,7 +20,7 @@ interface AllowedTag {
|
||||
}
|
||||
|
||||
type AllowedTagsType = {
|
||||
[Tag in keyof React.ReactHTML]?: AllowedTag;
|
||||
[Tag in keyof React.JSX.IntrinsicElements]?: AllowedTag;
|
||||
};
|
||||
|
||||
const globalAttributes: Record<string, boolean | string> = htmlConfig.global;
|
||||
@@ -70,7 +70,7 @@ export function htmlStringToComponents<Arg extends Record<string, unknown>>(
|
||||
const wrapper = document.createElement('template');
|
||||
wrapper.innerHTML = htmlString;
|
||||
|
||||
const rootChildren: React.ReactNode[] = [];
|
||||
const rootChildren: Awaited<React.ReactNode>[] = [];
|
||||
const queue: QueueItem[] = [
|
||||
{ node: wrapper.content, parent: rootChildren, depth: 0 },
|
||||
];
|
||||
|
||||
Reference in new issue
Block a user