From 90665453031904d5ec87360e8984e51e84ab2b2f Mon Sep 17 00:00:00 2001 From: Kira Date: Wed, 19 Feb 2020 17:27:40 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BF=AE=E6=94=B9args=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E5=86=99=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/base/single/button/buttons/button.text.ts | 8 ++++---- typescript/base/single/button/buttons/button.ts | 8 ++++---- typescript/base/single/button/listitem/icontextitem.ts | 8 ++++---- typescript/base/single/label/abstract.label.ts | 8 ++++---- typescript/base/single/label/label.ts | 4 ++-- typescript/case/button/item.multiselect.ts | 6 +++--- typescript/case/editor/editor.sign.ts | 8 ++++---- typescript/core/base.ts | 4 ++-- 8 files changed, 27 insertions(+), 27 deletions(-) diff --git a/typescript/base/single/button/buttons/button.text.ts b/typescript/base/single/button/buttons/button.text.ts index 7dd7f5ad0..ffc25fd2f 100644 --- a/typescript/base/single/button/buttons/button.text.ts +++ b/typescript/base/single/button/buttons/button.text.ts @@ -3,13 +3,13 @@ import { _BasicButton } from "../button.basic"; export interface _TextButton extends _BasicButton { setStyle(style: any): void; - doRedMark(...args: any): void; + doRedMark(...args: any[]): void; - unRedMark(...args: any): void; + unRedMark(...args: any[]): void; - doHighLight(...args: any): void; + doHighLight(...args: any[]): void; - unHighLight(...args: any): void; + unHighLight(...args: any[]): void; } export interface _TextButtonStatic { diff --git a/typescript/base/single/button/buttons/button.ts b/typescript/base/single/button/buttons/button.ts index 00dab6e51..2d4e171f0 100644 --- a/typescript/base/single/button/buttons/button.ts +++ b/typescript/base/single/button/buttons/button.ts @@ -1,13 +1,13 @@ import { _BasicButton } from "../button.basic"; export interface _Button extends _BasicButton { - doRedMark(...args: any): void; + doRedMark(...args: any[]): void; - unRedMark(...args: any): void; + unRedMark(...args: any[]): void; - doHighLight(...args: any): void; + doHighLight(...args: any[]): void; - unHighLight(...args: any): void; + unHighLight(...args: any[]): void; } export interface _ButtonStatic { diff --git a/typescript/base/single/button/listitem/icontextitem.ts b/typescript/base/single/button/listitem/icontextitem.ts index 6c1cd97d3..80d7d40bd 100644 --- a/typescript/base/single/button/listitem/icontextitem.ts +++ b/typescript/base/single/button/listitem/icontextitem.ts @@ -1,13 +1,13 @@ import { _BasicButton } from "../button.basic"; export interface _IconTextItem extends _BasicButton { - doRedMark(...args: any): void; + doRedMark(...args: any[]): void; - unRedMark(...args: any): void; + unRedMark(...args: any[]): void; - doHighLight(...args: any): void; + doHighLight(...args: any[]): void; - unHighLight(...args: any): void; + unHighLight(...args: any[]): void; } export interface _IconTextItemStatic { diff --git a/typescript/base/single/label/abstract.label.ts b/typescript/base/single/label/abstract.label.ts index 30a239408..d0a39476c 100644 --- a/typescript/base/single/label/abstract.label.ts +++ b/typescript/base/single/label/abstract.label.ts @@ -1,13 +1,13 @@ import { _Single } from "../single"; export interface _AbstractLabel extends _Single { - doRedMark(...args: any): void; + doRedMark(...args: any[]): void; - unRedMark(...args: any): void; + unRedMark(...args: any[]): void; - doHighLight(...args: any): void; + doHighLight(...args: any[]): void; - unHighLight(...args: any): void; + unHighLight(...args: any[]): void; setText(v: string): void; diff --git a/typescript/base/single/label/label.ts b/typescript/base/single/label/label.ts index b1971d5e2..03f5f2e38 100644 --- a/typescript/base/single/label/label.ts +++ b/typescript/base/single/label/label.ts @@ -1,7 +1,7 @@ import { _AbstractLabel } from "./abstract.label"; export interface _Label extends _AbstractLabel { - doRedMark(...args: any): void; + doRedMark(...args: any[]): void; - unRedMark(...args: any): void + unRedMark(...args: any[]): void } diff --git a/typescript/case/button/item.multiselect.ts b/typescript/case/button/item.multiselect.ts index a28ce8f69..8f342dd2e 100644 --- a/typescript/case/button/item.multiselect.ts +++ b/typescript/case/button/item.multiselect.ts @@ -1,11 +1,11 @@ import { _BasicButton } from "../../base/single/button/button.basic"; export interface _MultiSelectItem extends _BasicButton { - doClick(...args: any): void; + doClick(...args: any[]): void; - doRedMark(...args: any): void; + doRedMark(...args: any[]): void; - unRedMark(...args: any): void; + unRedMark(...args: any[]): void; setSelected(v: boolean): void; } diff --git a/typescript/case/editor/editor.sign.ts b/typescript/case/editor/editor.sign.ts index 60afcbb83..906941933 100644 --- a/typescript/case/editor/editor.sign.ts +++ b/typescript/case/editor/editor.sign.ts @@ -11,13 +11,13 @@ export interface _SignEditor extends _Widget { blur(): void; - doRedMark(...args: any): void; + doRedMark(...args: any[]): void; - unRedMark(...args: any): void; + unRedMark(...args: any[]): void; - doHighLight(...args: any): void; + doHighLight(...args: any[]): void; - unHighLight(...args: any): void; + unHighLight(...args: any[]): void; isValid(): boolean; diff --git a/typescript/core/base.ts b/typescript/core/base.ts index f252af4f3..b7c3ed83e 100644 --- a/typescript/core/base.ts +++ b/typescript/core/base.ts @@ -297,9 +297,9 @@ export interface _base { throttle: (func: Function, wait?: number, options?: any) => Function; - delay: (func: Function, wait: number, ...args: any) => number; + delay: (func: Function, wait: number, ...args: any[]) => number; - defer: (func: Function, ...args: any) => number; + defer: (func: Function, ...args: any[]) => number; wrap: (value: any, wrapper: Function) => Function;