From dc5053053f0f116db3526aafa82437a8276c9e8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Tue, 4 Jun 2019 10:09:50 +0800 Subject: [PATCH] add return type --- src/utils/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/utils.ts b/src/utils/utils.ts index 183dda9e..beddb201 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -5,7 +5,7 @@ export function isUrl(path: string) { return reg.test(path); } -export function isAntDesignPro() { +export function isAntDesignPro(): boolean { if (ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION === 'site') { return true; } @@ -13,7 +13,7 @@ export function isAntDesignPro() { } // 给官方演示站点用,用于关闭真实开发环境不需要使用的特性 -export function isAntDesignProOrDev() { +export function isAntDesignProOrDev(): boolean { const { NODE_ENV } = process.env; if (NODE_ENV === 'development') { return true; -- GitLab