Open FPNL opened 5 years ago
I couldn't find a way to make a boolean definition , but you can at least shorten
strict: process.env.DEV === true ? true : false
to
strict: !!process.env.DEV
I think you could fix it like this strict: Boolean(process.env.DEV),
process.env.DEV is a string containing the text "true" or "false, but is not a boolean, but you can parse it to boolean
I have this problem:
In
env.d.ts
, we know this can be set but Innode_modules/@types/node/globals.d.ts
So, I have two questions:
global.d.ts
file, how can we fix this problem by not using this way...