Merge branch 'dev' of codeup.aliyun.com:61c14a7efa282c88e103c23f/oak-frontend-base into dev

This commit is contained in:
Xu Chang 2023-09-15 18:30:51 +08:00
commit 1fd9f4d0a9
2 changed files with 19 additions and 5 deletions

View File

@ -52,11 +52,11 @@
"@types/mocha": "^8.2.0",
"@types/node": "^20.6.0",
"@types/node-schedule": "^2.1.0",
"@types/react": "^18.2.18",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"@types/uuid": "^8.3.0",
"@types/wechat-miniprogram": "^3.4.1",
"antd": "^5.8.3",
"antd": "^5.9.0",
"antd-mobile": "^5.32.0",
"antd-mobile-icons": "^0.3.0",
"assert": "^2.0.0",

20
typings/react.d.ts vendored
View File

@ -4,9 +4,10 @@
declare namespace NodeJS {
interface ProcessEnv {
readonly NODE_ENV: 'development' | 'production' | 'test';
readonly PUBLIC_URL: string;
}
readonly NODE_ENV: 'development' | 'production' | 'test' | 'staging';
readonly PUBLIC_URL: string;
readonly OAK_PLATFORM: 'web' | 'wechatMp' | 'server';
}
}
declare module '*.avif' {
@ -77,3 +78,16 @@ declare module '*.module.less' {
};
export default classes;
}
/**
*
*/
declare namespace JSX {
interface IntrinsicElements extends JSX.IntrinsicElements {
'wx-open-launch-weapp': React.DetailedHTMLProps<
React.HTMLAttributes<HTMLElement>,
HTMLElement,
{ appid: string }
>;
}
}