[babel-types] Add extra property to BaseNode type (#12136)
This commit is contained in:
parent
f6bd7493a8
commit
ebec7c8baf
@ -43,6 +43,7 @@ declare class ${NODE_PREFIX} {
|
||||
start: ?number;
|
||||
end: ?number;
|
||||
loc: ?${NODE_PREFIX}SourceLocation;
|
||||
extra?: { [string]: mixed };
|
||||
}\n\n`;
|
||||
|
||||
//
|
||||
|
||||
@ -45,6 +45,7 @@ interface BaseNode {
|
||||
end: number | null;
|
||||
loc: SourceLocation | null;
|
||||
type: Node["type"];
|
||||
extra?: Record<string, unknown>;
|
||||
}
|
||||
|
||||
export type Node = ${t.TYPES.sort().join(" | ")};\n\n`;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user