Added type-level mapping between aliases and nodes that have that alias. (#9110)
This commit is contained in:
parent
911c2d0bf4
commit
9e95da4eaa
@ -160,6 +160,13 @@ for (const type in t.FLIPPED_ALIAS_KEYS) {
|
||||
.map(type => `${type}`)
|
||||
.join(" | ")};\n`;
|
||||
}
|
||||
code += "\n";
|
||||
|
||||
code += "export interface Aliases {\n";
|
||||
for (const type in t.FLIPPED_ALIAS_KEYS) {
|
||||
code += ` ${type}: ${type};\n`;
|
||||
}
|
||||
code += "}\n\n";
|
||||
|
||||
code += lines.join("\n") + "\n";
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user