fix CI build error. export App

This commit is contained in:
张鹏波
2019-01-11 16:16:03 +08:00
parent e2a88a0709
commit 19867156a1
2 changed files with 12 additions and 3 deletions
+11 -2
View File
@@ -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 -1
View File
@@ -1,4 +1,4 @@
import wx from './index'
import {wx, App, Page, getApp, setTimeout, clearTimeout, setInterval, clearInterval} from './index'
App({
onLaunch: function () {
//调用API从本地缓存中获取数据