Skip to content

Commit

Permalink
output aliased types in typescript declarations (#8629)
Browse files Browse the repository at this point in the history
  • Loading branch information
43081j authored and nicolo-ribaudo committed Nov 5, 2018
1 parent 24c4901 commit b95cbc4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/generators/typescript.js
Expand Up @@ -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;`;
}
Expand Down

0 comments on commit b95cbc4

Please sign in to comment.