Add typings for process.env#5557
Conversation
|
What about user defined |
|
Does this merge friendly if the user installs |
6433064 to
f688010
Compare
Added.
Yes, just tested and worked as normal. It's because this code is extending an existing type, not creating or replacing completely |
|
I dunno what |
f688010 to
adf5693
Compare
|
@Timer removed. It's added by webpack, it will probably be always true with cra because there's no ssr support right |
|
@brunolemos ah, yeah, webpack is an implementation detail and we regularly bump major versions of webpack in patches. One day, we might not even use webpack -- so I don't want to rely on this. |
adf5693 to
15f2308
Compare
Babel doesn't support namespaces like
export namespace App {}, but it does seem to supportexport 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)