Skip to content

Commit

Permalink
chore(template): fix process type (#7672)
Browse files Browse the repository at this point in the history
Co-authored-by: Li,Weitao <[email protected]>
  • Loading branch information
Cslove and luckyadam authored Sep 22, 2020
1 parent 589e0ff commit 3204583
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/taro-cli/templates/default/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ declare module '*.scss';
declare module '*.sass';
declare module '*.styl';

// @ts-ignore
declare const process: {
env: {
TARO_ENV: 'weapp' | 'swan' | 'alipay' | 'h5' | 'rn' | 'tt' | 'quickapp' | 'qq' | 'jd';
[key: string]: any;
declare namespace NodeJS {
interface ProcessEnv {
TARO_ENV: 'weapp' | 'swan' | 'alipay' | 'h5' | 'rn' | 'tt' | 'quickapp' | 'qq' | 'jd'
}
}

0 comments on commit 3204583

Please sign in to comment.