feat: multi-module iteration
This commit is contained in:
Vendored
+30
@@ -0,0 +1,30 @@
|
||||
/// <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 const defineAppConfig: (config: Record<string, unknown>) => Record<string, unknown>;
|
||||
declare const definePageConfig: (config: Record<string, unknown>) => Record<string, unknown>;
|
||||
|
||||
declare const TARO_APP_API_ORIGIN: string;
|
||||
|
||||
/** 微信小程序全局(Taro 未封装的 API 如 openBusinessView 需直接调用) */
|
||||
declare const wx: {
|
||||
openBusinessView?: (opts: Record<string, unknown>) => void;
|
||||
canIUse?: (schema: string) => boolean;
|
||||
requestPayment?: (opts: Record<string, unknown>) => void;
|
||||
[key: string]: unknown;
|
||||
};
|
||||
|
||||
declare namespace NodeJS {
|
||||
interface ProcessEnv {
|
||||
TARO_ENV: 'weapp' | 'h5' | string;
|
||||
VITE_API_TARGET?: string;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user