|
| 1 | +export const Aliases: Record<string, string>; |
| 2 | +export const Properties: Set<string>; |
| 3 | +export const ChildProperties: Set<string>; |
| 4 | +export const DelegatedEvents: Set<string>; |
| 5 | +export const DOMElements: Set<string>; |
| 6 | +export const SVGElements: Set<string>; |
| 7 | +export const SVGNamespace: Record<string, string>; |
| 8 | +export function getPropAlias(prop: string, tagName: string): string | undefined; |
| 9 | + |
1 | 10 | export function renderToString<T>(
|
2 | 11 | fn: () => T,
|
3 | 12 | options?: {
|
@@ -87,3 +96,80 @@ export function pipeToNodeWritable<T>(
|
87 | 96 | onCompleteAll?: () => void;
|
88 | 97 | }
|
89 | 98 | ): void;
|
| 99 | + |
| 100 | +// client-only APIs |
| 101 | + |
| 102 | +/** @deprecated not supported on the server side */ |
| 103 | +export function classList( |
| 104 | + node: Element, |
| 105 | + value: { [k: string]: boolean }, |
| 106 | + prev?: { [k: string]: boolean } |
| 107 | +): { [k: string]: boolean }; |
| 108 | + |
| 109 | +/** @deprecated not supported on the server side */ |
| 110 | +export function style( |
| 111 | + node: Element, |
| 112 | + value: { [k: string]: string }, |
| 113 | + prev?: { [k: string]: string } |
| 114 | +): void; |
| 115 | + |
| 116 | +/** @deprecated not supported on the server side */ |
| 117 | +export function insert<T>( |
| 118 | + parent: MountableElement, |
| 119 | + accessor: (() => T) | T, |
| 120 | + marker?: Node | null, |
| 121 | + init?: JSX.Element |
| 122 | +): JSX.Element; |
| 123 | + |
| 124 | +/** @deprecated not supported on the server side */ |
| 125 | +export function untrack<T>(fn: () => T): T; |
| 126 | + |
| 127 | +/** @deprecated not supported on the server side */ |
| 128 | +export function spread<T>( |
| 129 | + node: Element, |
| 130 | + accessor: (() => T) | T, |
| 131 | + isSVG?: Boolean, |
| 132 | + skipChildren?: Boolean |
| 133 | +): void; |
| 134 | + |
| 135 | +/** @deprecated not supported on the server side */ |
| 136 | +export function delegateEvents(eventNames: string[], d?: Document): void; |
| 137 | +/** @deprecated not supported on the server side */ |
| 138 | +export function dynamicProperty(props: unknown, key: string): unknown; |
| 139 | +/** @deprecated not supported on the server side */ |
| 140 | +export function setAttribute(node: Element, name: string, value: string): void; |
| 141 | +/** @deprecated not supported on the server side */ |
| 142 | +export function setAttributeNS(node: Element, namespace: string, name: string, value: string): void; |
| 143 | + |
| 144 | +/** @deprecated not supported on the server side */ |
| 145 | +export function addEventListener( |
| 146 | + node: Element, |
| 147 | + name: string, |
| 148 | + handler: () => void, |
| 149 | + delegate: boolean |
| 150 | +): void; |
| 151 | + |
| 152 | +/** @deprecated not supported on the server side */ |
| 153 | +export function render(code: () => JSX.Element, element: MountableElement): () => void; |
| 154 | +/** @deprecated not supported on the server side */ |
| 155 | +export function template(html: string, isCE?: boolean, isSVG?: boolean): () => Element; |
| 156 | +/** @deprecated not supported on the server side */ |
| 157 | +export function setProperty(node: Element, name: string, value: any): void; |
| 158 | +/** @deprecated not supported on the server side */ |
| 159 | +export function className(node: Element, value: string): void; |
| 160 | +/** @deprecated not supported on the server side */ |
| 161 | +export function assign(node: Element, props: any, isSVG?: Boolean, skipChildren?: Boolean): void; |
| 162 | + |
| 163 | +/** @deprecated not supported on the server side */ |
| 164 | +export function hydrate( |
| 165 | + fn: () => JSX.Element, |
| 166 | + node: MountableElement, |
| 167 | + options?: { renderId?: string; owner?: unknown } |
| 168 | +): () => void; |
| 169 | + |
| 170 | +/** @deprecated not supported on the server side */ |
| 171 | +export function getNextElement(template?: HTMLTemplateElement): Element; |
| 172 | +/** @deprecated not supported on the server side */ |
| 173 | +export function getNextMatch(start: Node, elementName: string): Element; |
| 174 | +/** @deprecated not supported on the server side */ |
| 175 | +export function getNextMarker(start: Node): [Node, Array<Node>]; |
0 commit comments