提交 a324ce77 作者: 方治民

fix: 修复 eslint 错误

上级 aefd9d0e
...@@ -18,10 +18,10 @@ function generateUniComponentsTypes() { ...@@ -18,10 +18,10 @@ function generateUniComponentsTypes() {
declare module 'vue' { declare module 'vue' {
// shime-uni.d.ts // shime-uni.d.ts
type Hooks = App.AppInstance & Page.PageInstance; type Hooks = App.AppInstance & Page.PageInstance;
interface ComponentCustomOptions extends Hooks {} type ComponentCustomOptions = Hooks
// uni-app components // uni-app components
interface UniComponent extends HTMLElement {} type UniComponent = HTMLElement
export interface GlobalComponents { export interface GlobalComponents {
${components.join(',\n\t')} ${components.join(',\n\t')}
} }
......
...@@ -3,10 +3,10 @@ ...@@ -3,10 +3,10 @@
declare module 'vue' { declare module 'vue' {
// shime-uni.d.ts // shime-uni.d.ts
type Hooks = App.AppInstance & Page.PageInstance type Hooks = App.AppInstance & Page.PageInstance
interface ComponentCustomOptions extends Hooks {} type ComponentCustomOptions = Hooks
// uni-app components // uni-app components
interface UniComponent extends HTMLElement {} type UniComponent = HTMLElement
export interface GlobalComponents { export interface GlobalComponents {
block: UniComponent block: UniComponent
view: UniComponent view: UniComponent
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论