Add support for this type to Babel 6.x

This commit is contained in:
Sam Goldman
2015-12-23 13:54:57 -05:00
parent ae8b7ea352
commit 32c03222bf
7 changed files with 225 additions and 0 deletions

View File

@@ -140,6 +140,10 @@ export function StringTypeAnnotation() {
this.push("string");
}
export function ThisTypeAnnotation() {
this.push("this");
}
export function TupleTypeAnnotation(node: Object) {
this.push("[");
this.printJoin(node.types, node, { separator: ", " });