diff --git a/src/typescript-ast-nodes.js b/src/typescript-ast-nodes.js index da2a8305..3e1571fd 100644 --- a/src/typescript-ast-nodes.js +++ b/src/typescript-ast-nodes.js @@ -36,6 +36,12 @@ module.exports = function(fork) { .field("elementType", def("TSType")) .bases("Node"); + def("TSQualifiedName") + .build("left", "right") + .field("left", def("TSType")) + .field("right", def("TSType")) + .bases("Node"); + def("TypeElement").bases("Node"); def("TSSignature") diff --git a/tests/typescript_class/__snapshots__/jsfmt.spec.js.snap b/tests/typescript_class/__snapshots__/jsfmt.spec.js.snap index 0e62e5e1..f9050027 100644 --- a/tests/typescript_class/__snapshots__/jsfmt.spec.js.snap +++ b/tests/typescript_class/__snapshots__/jsfmt.spec.js.snap @@ -2,7 +2,15 @@ exports[`generics.ts 1`] = ` class implements Map {} + +interface AudioBufferList { + mBuffers: interop.Reference; +} ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ class implements Map {} +interface AudioBufferList { + mBuffers: interop.Reference /*AudioBuffer*/; +} + `; diff --git a/tests/typescript_class/generics.ts b/tests/typescript_class/generics.ts index 014d2fd3..c6b43d5c 100644 --- a/tests/typescript_class/generics.ts +++ b/tests/typescript_class/generics.ts @@ -1 +1,5 @@ class implements Map {} + +interface AudioBufferList { + mBuffers: interop.Reference; +}