declare module '*.png' declare module '*.gif' declare module '*.jpg' declare module '*.jpeg' declare module '*.svg' declare module '*.css' declare module '*.less' declare module '*.scss' declare module '*.sass' declare module '*.styl' // @ts-ignore declare const process: { env: { TARO_ENV: 'weapp' | 'swan' | 'alipay' | 'h5' | 'rn' | 'tt' | 'quickapp' | 'qq' | 'jd' [key: string]: any } } declare var HTTP_SERVER: string declare namespace JSX { interface IntrinsicElements { /** * WXS响应事件 * 用途 使用 WXS 函数用来响应小程序事件,目前只能响应内置组件的事件,不支持自定义组件事件。WXS 函数的除了纯逻辑的运算,还可以通过封装好的ComponentDescriptor 实例来访问以及设置组件的 class 和样式,对于交互动画,设置 style 和 class 足够了。 * 需要手动配置Copy到指定目录。 */ wxs: { src?: string module: string children?: any } nearby: { onCallout?: Function onCallmenu?: Function imgUrls?: any[] imgSize?: any[] quicklist?: any[] quicklist2?: any[] } view: { dataWidth?: number bindtouchmove?: string bindtouchend?: string bindtouchstart?: string class?: string style?: string children?: any } wxparser: { richText?: string } 'van-sticky': any 'van-transition': any 'van-loading': { /** 颜色*/ color?: string /** 类型,可选值为 spinner*/ type?: string /** 加载图标大小,默认单位为 px*/ size?: string | number /** 文字大小,默认单位为为 px*/ 'text-size'?: string | number /** 是否垂直排列图标和文字内容*/ vertical?: boolean 'custom-class'?: string } } } type PromiseDispatch = ({ type: string, payload: any }) => Promise