mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
ExportNamedDeclaration#source can be null (#23909)
e.g. this named declaration has a source:
```javascript
export {foo} from './bar.js';
```
and this one does not:
```javascript
export const foo = 10;
```
Try it out at https://astexplorer.net/ to confirm.
This commit is contained in:
parent
5bdd72f928
commit
786fae6a7f
2
types/babel-types/index.d.ts
vendored
2
types/babel-types/index.d.ts
vendored
@ -422,7 +422,7 @@ export interface ExportNamedDeclaration extends Node {
|
||||
type: "ExportNamedDeclaration";
|
||||
declaration: Declaration;
|
||||
specifiers: ExportSpecifier[];
|
||||
source: StringLiteral;
|
||||
source: StringLiteral | null;
|
||||
}
|
||||
|
||||
export interface ExportSpecifier extends Node {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user