Add TSTupleType to ast-types (#1685)

Otherwise this throws
This commit is contained in:
Christopher Chedeau authored and GitHub committed 2017-05-23 13:14:30 -07:00
1 parent 1e351436da
commit bcc3eb9272
4 files changed
+40

No files matched your search

+7
View File
@@ -26,6 +26,13 @@ module.exports = function(fork) {
def("TSType").bases("Node");
def("TSTupleType")
.build("elementTypes")
.field("elementTypes", [def("TSType")])
.bases("Node");
def("TSArrayType").bases("Node");
def("TypeElement").bases("Node");
def("TSSignature")
@@ -0,0 +1,23 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`tuple.ts 1`] = `
export type SCMRawResource = [
number /*handle*/,
string /*resourceUri*/,
modes.Command /*command*/,
string[] /*icons: light, dark*/,
boolean /*strike through*/,
boolean /*faded*/
];
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export type SCMRawResource = [
number /*handle*/,
string /*resourceUri*/,
modes.Command /*command*/,
string[] /*icons: light, dark*/,
boolean /*strike through*/,
boolean /*faded*/
];
`;
+1
View File
@@ -0,0 +1 @@
run_spec(__dirname, { parser: "typescript" });
+9
View File
@@ -0,0 +1,9 @@
export type SCMRawResource = [
number /*handle*/,
string /*resourceUri*/,
modes.Command /*command*/,
string[] /*icons: light, dark*/,
boolean /*strike through*/,
boolean /*faded*/
];