我正在使用dotenv加载一些运行时的值。我想在值未定义的情况下抛出一个错误。在Typescript中有没有比下面的更好的方法呢? dotenv.config() throw new Error("USERNAME is undefined") let username:string = process.env.USERNAME
我想使用这个node.js模块var ty = require("assert-type"); //https://github.com/mlin/node-assert-typevar T = ty.Assert;var cs = require("coffee-script/register");//this l