1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- /// <reference types="@tarojs/taro" />
- 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';
- declare namespace NodeJS {
- interface ProcessEnv {
- TARO_ENV: 'weapp' | 'swan' | 'alipay' | 'h5' | 'rn' | 'tt' | 'quickapp' | 'qq' | 'jd'
- }
- }
- declare namespace JSX {
- interface IntrinsicElements {
- custom: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & { props?: any }
- calendar: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>
- }
- }
- declare const wx
- declare namespace Taro {
- interface TaroStatic {
- $global: any
- }
- }
- type CustomPropsType = {
- adpId: number
- width?: number
- openEmbeddedMiniProgram(appId: string, path: string): void
- onError?(params: { message: string, code: number}): void
- onLoad?(): void
- onClose?(): void
- }
- type ConfigType = {
- header?: {},
- method?: 'GET' | 'POST',
- timeout?: number
- }
- type DataType = {
- [key: string]: any
- baseInfo?: object
- }
- type HttpInstanceType = {
- get(url: string, data?: {}, config?: ConfigType): Promise<any>
- post(url: string, data?: {}, config?: ConfigType): Promise<any>
- }
- interface RequestType {
- code: number,
- data: any,
- msg: string
- }
|