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