UNPKG

@nodegui/svelte-nodegui

Version:
24 lines (23 loc) 994 B
import { NSVComment, NSVElement, NSVText } from "../nativescript-vue-next/runtime/nodes"; import { RNWindow } from "../react-nodegui/src/components/Window/RNWindow"; import HeadElement from "./HeadElement"; import { RNObject } from "./RNObject"; export default class SvelteNodeGUIDocument extends NSVElement<RNObject> { head: HeadElement; body: NSVElement<RNObject>; private _windows; constructor(); createEvent(type: string): any; createComment(data: string): NSVComment; createElement(tagName: string): NSVElement; createElementNS(namespace: string, tagName: string): NSVElement; createTextNode(data: string): NSVText; getElementById(id: string): NSVElement | null; dispatchEvent(event: any): void; addWindow(win: NSVElement<RNWindow>): void; /** * I'm not clear where would be a good place to call this. */ deleteWindow(win: NSVElement<RNWindow>): void; setStyleSheets(styleSheet: string): void; }