Created by: brunolemos
Babel doesn't support namespaces like export namespace App {}
, but it does seem to support export declare namespace App {}
or extending an existing namescape inside a declaration file (.d.ts
) like we are doing here. Everything seems to work fine for this use case. (related)
Activity
added CLA Signed label
changed milestone to %2.1
added tag: bug fix label
Created by: brunolemos
What about user defined REACT_APP_ vars? Can we fall back to { [key: string]: string | undefined }? Also, test is a valid env.
Added.
Does this merge friendly if the user installs @types/node?
Yes, just tested and worked as normal. It's because this code is extending an existing type, not creating or replacing completely
added issue: typescript label
Please register or sign in to reply