Commit dc505305 authored by 陈帅's avatar 陈帅

add return type

parent 56fff6aa
...@@ -5,7 +5,7 @@ export function isUrl(path: string) { ...@@ -5,7 +5,7 @@ export function isUrl(path: string) {
return reg.test(path); return reg.test(path);
} }
export function isAntDesignPro() { export function isAntDesignPro(): boolean {
if (ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION === 'site') { if (ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION === 'site') {
return true; return true;
} }
...@@ -13,7 +13,7 @@ export function isAntDesignPro() { ...@@ -13,7 +13,7 @@ export function isAntDesignPro() {
} }
// 给官方演示站点用,用于关闭真实开发环境不需要使用的特性 // 给官方演示站点用,用于关闭真实开发环境不需要使用的特性
export function isAntDesignProOrDev() { export function isAntDesignProOrDev(): boolean {
const { NODE_ENV } = process.env; const { NODE_ENV } = process.env;
if (NODE_ENV === 'development') { if (NODE_ENV === 'development') {
return true; return true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment