diff --git a/core/datacap-web/src/App.vue b/core/datacap-web/src/App.vue index cb671209..001426b9 100644 --- a/core/datacap-web/src/App.vue +++ b/core/datacap-web/src/App.vue @@ -1,7 +1,8 @@ @@ -15,11 +16,11 @@ export default defineComponent({ // Fixed ResizeObserver loop completed with undelivered notifications setup() { - const debounce = (callback: (...args: any[]) => void, delay: number) => { - let tid: any; - return function (...args: any[]) { + const debounce = (callback: (...args: unknown[]) => void, delay: number) => { + let tid: unknown; + return function (...args: unknown[]) { const ctx = self; - tid && clearTimeout(tid); + tid && clearTimeout(tid as number); tid = setTimeout(() => { callback.apply(ctx, args); }, delay); @@ -30,7 +31,7 @@ export default defineComponent({ (window as any).ResizeObserver = class ResizeObserver extends _ { - constructor(callback: (...args: any[]) => void) + constructor(callback: (...args: unknown[]) => void) { callback = debounce(callback, 20); super(callback); diff --git a/core/datacap-web/src/model/SourceModel.ts b/core/datacap-web/src/model/SourceModel.ts index dc01e1a1..9787dfb5 100644 --- a/core/datacap-web/src/model/SourceModel.ts +++ b/core/datacap-web/src/model/SourceModel.ts @@ -13,7 +13,7 @@ export interface SourceModel type: string; createTime?: number; ssl?: boolean; - configures: {}; + configures: NonNullable; file?: []; version?: string; } diff --git a/core/datacap-web/src/model/template/Sql.ts b/core/datacap-web/src/model/template/Sql.ts index 1b0b793f..5a0c672a 100644 --- a/core/datacap-web/src/model/template/Sql.ts +++ b/core/datacap-web/src/model/template/Sql.ts @@ -5,7 +5,7 @@ export interface TemplateSql description: string; content: string; plugin: string; - configure: {}; + configure: NonNullable; system: boolean; createTime?: string; updateTime?: string;