output aliased types in typescript declarations (#8629)

This commit is contained in:
James Garbutt 2018-11-05 22:58:57 +00:00 committed by Nicolò Ribaudo
parent 24c4901ff5
commit b95cbc4a8e

View File

@ -111,6 +111,8 @@ for (let i = 0; i < t.TYPES.length; i++) {
if (t.NODE_FIELDS[t.TYPES[i]]) {
decl += `node is ${t.TYPES[i]};`;
} else if (t.FLIPPED_ALIAS_KEYS[t.TYPES[i]]) {
decl += `node is ${t.TYPES[i]};`;
} else {
decl += `boolean;`;
}