Module augmentation only works in the same file as the variable

前端 未结 0 1650
误落风尘
误落风尘 2021-01-22 03:37

I have a declaration.d.ts file like so:

declare let hello: string;

declare global {
  namespace NodeJS {
    interface ProcessEnv {
      NODE_ENV:          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题