mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
Upgrade Storybook to v10 (#30442)
GitOrigin-RevId: 9f51624bc2b34b6746d1854969173b44c9c9cf9a
This commit is contained in:
@@ -583,7 +583,7 @@ type ElementSelector<T extends string, E extends HTMLElement = HTMLElement> = {
|
||||
const createSelector = <
|
||||
T extends string,
|
||||
E extends HTMLElement = T extends keyof HTMLElementTagNameMap
|
||||
? HTMLElementTagNameMap[T]
|
||||
? Extract<HTMLElementTagNameMap[T], HTMLElement>
|
||||
: HTMLElement,
|
||||
>({
|
||||
selector,
|
||||
|
||||
+1
-1
@@ -78,7 +78,7 @@ export function typesetNodeIntoElement(
|
||||
let from = node.from
|
||||
|
||||
const addMarkup = (markup: Markup, childNode: SyntaxNode) => {
|
||||
const element = document.createElement(markup.elementType)
|
||||
const element = document.createElement(markup.elementType) as HTMLElement
|
||||
if (markup.className) {
|
||||
element.classList.add(markup.className)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user