This commit is contained in:
yison 2025-07-11 15:41:48 +08:00
parent 18fd3ede2c
commit dc24d5b6ed
117 changed files with 36876 additions and 7 deletions

31
client/types/global.d.ts vendored Normal file
View file

@ -0,0 +1,31 @@
/// <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 {
/** NODE 内置环境变量, 会影响到最终构建生成产物 */
NODE_ENV: 'development' | 'production',
/** 当前构建的平台 */
TARO_ENV: 'weapp' | 'swan' | 'alipay' | 'h5' | 'rn' | 'tt' | 'quickapp' | 'qq' | 'jd'
/**
* appid
* @description env `TARO_APP_ID`便 appid dist/project.config.json
* @see https://taro-docs.jd.com/docs/next/env-mode-config#特殊环境变量-taro_app_id
*/
TARO_APP_ID: string
}
}
declare module '@tarojs/components' {
export * from '@tarojs/components/types/index.vue3'
}

10
client/types/vue.d.ts vendored Normal file
View file

@ -0,0 +1,10 @@
export {}
declare module 'vue' {
export interface GlobalComponents extends JSX.IntrinsicElements {
/** Note: Vue runtime JSX.IntrinsicElements index signature
*
* 'scroll-view': JSX.IntrinsicElements['scroll-view']
*/
}
}