mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 00:07:07 +00:00
fix CI build error. export App
This commit is contained in:
Vendored
+11
-2
@@ -1728,7 +1728,7 @@ declare function getApp(): App;
|
||||
* @param delay 延迟的时间,函数的调用会在该延迟之后发生,单位 ms。
|
||||
* @param rest param1, param2, ..., paramN 等附加参数,它们会作为参数传递给回调函数。
|
||||
*/
|
||||
declare function setTimeout(callback: any, delay: number, rest: any): number;
|
||||
declare function setTimeout(callback: any, delay: number, rest?: any): number;
|
||||
|
||||
/**
|
||||
* 取消由 setTimeout 设置的定时器。
|
||||
@@ -1750,4 +1750,13 @@ declare function setInterval(callback: any, delay: number, rest: any): number;
|
||||
*/
|
||||
declare function clearInterval(timeoutID: number): number;
|
||||
|
||||
export default wx
|
||||
export {
|
||||
wx,
|
||||
App,
|
||||
Page,
|
||||
getApp,
|
||||
setTimeout,
|
||||
clearTimeout,
|
||||
setInterval,
|
||||
clearInterval
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import wx from './index'
|
||||
import {wx, App, Page, getApp, setTimeout, clearTimeout, setInterval, clearInterval} from './index'
|
||||
App({
|
||||
onLaunch: function () {
|
||||
//调用API从本地缓存中获取数据
|
||||
|
||||
Reference in New Issue
Block a user