提交 52e8fdf8 编写于 作者: 雪洛's avatar 雪洛

feat(uni-app-x web): 为dom常见类型增加定义省去部分ts-ignore

上级 7089ae3c
// 为dom顶层类型添加声明,保证用户使用时不报错,但是并不保证类型正确推断
declare global {
type document = any
type window = any
type navigator = any
type localStorage = any
type location = any
type history = any
type XMLHttpRequest = any
type FormData = any
type FileReader = any
type WebSocket = any
type Image = any
type HTMLElement = any
type HTMLCanvasElement = any
type HTMLImageElement = any
type HTMLVideoElement = any
type HTMLAudioElement = any
type HTMLMediaElement = any
type HTMLInputElement = any
type HTMLTextAreaElement = any
type HTMLSelectElement = any
type HTMLButtonElement = any
type HTMLAnchorElement = any
type HTMLFormElement = any
type HTMLDocument = any
type HTMLScriptElement = any
type HTMLStyleElement = any
type HTMLLinkElement = any
type HTMLIFrameElement = any
type HTMLFrameElement = any
type HTMLFrameSetElement = any
type HTMLBodyElement = any
type HTMLHeadElement = any
type HTMLMetaElement = any
type HTMLTitleElement = any
type HTMLBaseElement = any
type HTMLHtmlElement = any
type HTMLTableElement = any
type HTMLTableRowElement = any
type HTMLTableCellElement = any
type HTMLTableColElement = any
type HTMLTableSectionElement = any
type HTMLUListElement = any
type HTMLOListElement = any
type HTMLLIElement = any
type HTMLDListElement = any
type HTMLDivElement = any
type HTMLSpanElement = any
type HTMLHeadingElement = any
type HTMLQuoteElement = any
type HTMLPreElement = any
type HTMLBRElement = any
type HTMLParagraphElement = any
type HTMLHRElement = any
type HTMLModElement = any
type HTMLAnchorElement = any
type HTMLAreaElement = any
type HTMLLabelElement = any
type HTMLButtonElement = any
type HTMLSelectElement = any
type HTMLInputElement = any
type HTMLTextAreaElement = any
type HTMLFormElement = any
type HTMLFieldSetElement = any
type HTMLLegendElement = any
type HTMLTableCaptionElement = any
type HTMLDivElement = any
type HTMLTableColElement = any
type HTMLTableSectionElement = any
type HTMLTableRowElement = any
type HTMLTableCellElement = any
type HTMLFrameElement = any
type HTMLFrameSetElement = any
type HTMLIFrameElement = any
type HTMLBodyElement = any
type HTMLHtmlElement = any
type HTMLHeadElement = any
type HTMLTitleElement = any
type HTMLBaseElement = any
type HTMLMetaElement = any
type HTMLStyleElement = any
type HTMLLinkElement = any
type HTMLScriptElement = any
type HTMLDocument = any
type HTMLCollection = any
}
\ No newline at end of file
......@@ -11,6 +11,7 @@
"include": [
"env.d.ts",
"shim-uni.d.ts",
"shim-dom.d.ts",
"global.d.ts",
"**/*.uts",
"**/*.ts",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册