/* eslint-disable @typescript-eslint/no-explicit-any */
|
/// <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 module '*.vue' {
|
import { ComponentOptions } from 'vue'
|
const componentOptions: ComponentOptions
|
export default componentOptions
|
}
|
|
declare module '*.tsx' {
|
import Vue from 'compatible-vue';
|
export default Vue;
|
}
|
|
declare global {
|
namespace JSX {
|
type Element = VNode;
|
type ElementClass = Vue;
|
interface IntrinsicElements {
|
[elem: string]: any;
|
}
|
}
|
|
}
|
|
declare const OSS_URL: string
|
declare const WeixinJSBridge: any
|
|
declare namespace NodeJS {
|
interface ProcessEnv {
|
TARO_ENV: 'weapp' | 'swan' | 'alipay' | 'h5' | 'rn' | 'tt' | 'quickapp' | 'qq' | 'jd'
|
|
NODE_ENV: 'development' | 'production';
|
APP_ENV: 'staging';
|
|
BASE_URL: string;
|
TEST_BASE_URL: string;
|
|
OSS_URL: string;
|
TEST_OSS_URL: string;
|
WEMAP_KEY: string;
|
WXPayAppId: string;
|
}
|
}
|
|
declare module '@tarojs/components' {
|
export * from '@tarojs/components/types/index.vue3'
|
}
|
|
declare const CLIENT_ID: string
|
|
declare type Nullable<T> = T | null
|
declare type Recordable<T = unknown> = Record<string, T>
|
declare type ReadonlyRecordable<T = any> = {
|
readonly [key: string]: T
|
}
|
declare type Indexable<T = any> = {
|
[key: string]: T
|
}
|
declare type DeepPartial<T> = {
|
[P in keyof T]?: DeepPartial<T[P]>
|
}
|
|
declare interface WeMapModel {
|
latitude?: number;
|
longitude?: number;
|
provinceName?: string;
|
cityName?: string;
|
countyName?: string;
|
provinceCode?: number;
|
cityCode?: number;
|
countyCode?: number;
|
address?: string;
|
}
|
|
declare const uni = Taro
|