mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-29 17:51:46 +00:00
modify functions type
This commit is contained in:
Vendored
+2
-4
@@ -3,8 +3,6 @@
|
||||
// Definitions by: vargeek <https://github.com/vargeek>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
import functions from "../react-icons/md/functions";
|
||||
|
||||
declare namespace wx {
|
||||
type NoneParamCallback = () => void;
|
||||
type OneParamCallback = (data: any) => void;
|
||||
@@ -1382,7 +1380,7 @@ declare function getApp(): App;
|
||||
* @param delay 延迟的时间,函数的调用会在该延迟之后发生,单位 ms。
|
||||
* @param rest param1, param2, ..., paramN 等附加参数,它们会作为参数传递给回调函数。
|
||||
*/
|
||||
declare function setTimeout(callback: functions, delay: number, rest: any): number;
|
||||
declare function setTimeout(callback: any, delay: number, rest: any): number;
|
||||
|
||||
/**
|
||||
* 取消由 setTimeout 设置的定时器。
|
||||
@@ -1396,7 +1394,7 @@ declare function clearTimeout(timeoutID: number): number;
|
||||
* @param delay 延迟的时间,函数的调用会在该延迟之后发生,单位 ms。
|
||||
* @param rest param1, param2, ..., paramN 等附加参数,它们会作为参数传递给回调函数。
|
||||
*/
|
||||
declare function setInterval(callback: functions, delay: number, rest: any): number;
|
||||
declare function setInterval(callback: any, delay: number, rest: any): number;
|
||||
|
||||
/**
|
||||
* 取消由 setInterval 设置的定时器。
|
||||
|
||||
Reference in New Issue
Block a user