1+ {
2+ "type" : " File" ,
3+ "start" :0 ,"end" :102 ,"loc" :{"start" :{"line" :1 ,"column" :0 },"end" :{"line" :5 ,"column" :1 }},
4+ "program" : {
5+ "type" : " Program" ,
6+ "start" :0 ,"end" :102 ,"loc" :{"start" :{"line" :1 ,"column" :0 },"end" :{"line" :5 ,"column" :1 }},
7+ "sourceType" : " module" ,
8+ "interpreter" : null ,
9+ "body" : [
10+ {
11+ "type" : " TSInterfaceDeclaration" ,
12+ "start" :0 ,"end" :102 ,"loc" :{"start" :{"line" :1 ,"column" :0 },"end" :{"line" :5 ,"column" :1 }},
13+ "id" : {
14+ "type" : " Identifier" ,
15+ "start" :18 ,"end" :19 ,"loc" :{"start" :{"line" :1 ,"column" :18 },"end" :{"line" :1 ,"column" :19 },"identifierName" :" B" },
16+ "name" : " B"
17+ },
18+ "body" : {
19+ "type" : " TSInterfaceBody" ,
20+ "start" :20 ,"end" :102 ,"loc" :{"start" :{"line" :1 ,"column" :20 },"end" :{"line" :5 ,"column" :1 }},
21+ "body" : [
22+ {
23+ "type" : " TSMethodSignature" ,
24+ "start" :24 ,"end" :39 ,"loc" :{"start" :{"line" :2 ,"column" :2 },"end" :{"line" :2 ,"column" :17 }},
25+ "key" : {
26+ "type" : " Identifier" ,
27+ "start" :24 ,"end" :27 ,"loc" :{"start" :{"line" :2 ,"column" :2 },"end" :{"line" :2 ,"column" :5 },"identifierName" :" foo" },
28+ "name" : " foo"
29+ },
30+ "computed" : false ,
31+ "parameters" : [
32+ {
33+ "type" : " ArrayPattern" ,
34+ "start" :28 ,"end" :31 ,"loc" :{"start" :{"line" :2 ,"column" :6 },"end" :{"line" :2 ,"column" :9 }},
35+ "elements" : [],
36+ "optional" : true
37+ }
38+ ],
39+ "typeAnnotation" : {
40+ "type" : " TSTypeAnnotation" ,
41+ "start" :32 ,"end" :38 ,"loc" :{"start" :{"line" :2 ,"column" :10 },"end" :{"line" :2 ,"column" :16 }},
42+ "typeAnnotation" : {
43+ "type" : " TSVoidKeyword" ,
44+ "start" :34 ,"end" :38 ,"loc" :{"start" :{"line" :2 ,"column" :12 },"end" :{"line" :2 ,"column" :16 }}
45+ }
46+ },
47+ "kind" : " method"
48+ },
49+ {
50+ "type" : " TSMethodSignature" ,
51+ "start" :42 ,"end" :60 ,"loc" :{"start" :{"line" :3 ,"column" :2 },"end" :{"line" :3 ,"column" :20 }},
52+ "key" : {
53+ "type" : " Identifier" ,
54+ "start" :42 ,"end" :45 ,"loc" :{"start" :{"line" :3 ,"column" :2 },"end" :{"line" :3 ,"column" :5 },"identifierName" :" bar" },
55+ "name" : " bar"
56+ },
57+ "computed" : false ,
58+ "parameters" : [
59+ {
60+ "type" : " ObjectPattern" ,
61+ "start" :46 ,"end" :48 ,"loc" :{"start" :{"line" :3 ,"column" :6 },"end" :{"line" :3 ,"column" :8 }},
62+ "properties" : []
63+ },
64+ {
65+ "type" : " ArrayPattern" ,
66+ "start" :50 ,"end" :53 ,"loc" :{"start" :{"line" :3 ,"column" :10 },"end" :{"line" :3 ,"column" :13 }},
67+ "elements" : [],
68+ "optional" : true
69+ }
70+ ],
71+ "typeAnnotation" : {
72+ "type" : " TSTypeAnnotation" ,
73+ "start" :54 ,"end" :59 ,"loc" :{"start" :{"line" :3 ,"column" :14 },"end" :{"line" :3 ,"column" :19 }},
74+ "typeAnnotation" : {
75+ "type" : " TSAnyKeyword" ,
76+ "start" :56 ,"end" :59 ,"loc" :{"start" :{"line" :3 ,"column" :16 },"end" :{"line" :3 ,"column" :19 }}
77+ }
78+ },
79+ "kind" : " method"
80+ },
81+ {
82+ "type" : " TSMethodSignature" ,
83+ "start" :63 ,"end" :100 ,"loc" :{"start" :{"line" :4 ,"column" :2 },"end" :{"line" :4 ,"column" :39 }},
84+ "key" : {
85+ "type" : " Identifier" ,
86+ "start" :63 ,"end" :66 ,"loc" :{"start" :{"line" :4 ,"column" :2 },"end" :{"line" :4 ,"column" :5 },"identifierName" :" baz" },
87+ "name" : " baz"
88+ },
89+ "computed" : false ,
90+ "parameters" : [
91+ {
92+ "type" : " Identifier" ,
93+ "start" :67 ,"end" :76 ,"loc" :{"start" :{"line" :4 ,"column" :6 },"end" :{"line" :4 ,"column" :15 },"identifierName" :" a" },
94+ "name" : " a" ,
95+ "typeAnnotation" : {
96+ "type" : " TSTypeAnnotation" ,
97+ "start" :68 ,"end" :76 ,"loc" :{"start" :{"line" :4 ,"column" :7 },"end" :{"line" :4 ,"column" :15 }},
98+ "typeAnnotation" : {
99+ "type" : " TSStringKeyword" ,
100+ "start" :70 ,"end" :76 ,"loc" :{"start" :{"line" :4 ,"column" :9 },"end" :{"line" :4 ,"column" :15 }}
101+ }
102+ }
103+ },
104+ {
105+ "type" : " Identifier" ,
106+ "start" :78 ,"end" :87 ,"loc" :{"start" :{"line" :4 ,"column" :17 },"end" :{"line" :4 ,"column" :26 },"identifierName" :" b" },
107+ "name" : " b" ,
108+ "typeAnnotation" : {
109+ "type" : " TSTypeAnnotation" ,
110+ "start" :79 ,"end" :87 ,"loc" :{"start" :{"line" :4 ,"column" :18 },"end" :{"line" :4 ,"column" :26 }},
111+ "typeAnnotation" : {
112+ "type" : " TSNumberKeyword" ,
113+ "start" :81 ,"end" :87 ,"loc" :{"start" :{"line" :4 ,"column" :20 },"end" :{"line" :4 ,"column" :26 }}
114+ }
115+ }
116+ },
117+ {
118+ "type" : " ArrayPattern" ,
119+ "start" :89 ,"end" :92 ,"loc" :{"start" :{"line" :4 ,"column" :28 },"end" :{"line" :4 ,"column" :31 }},
120+ "elements" : [],
121+ "optional" : true
122+ }
123+ ],
124+ "typeAnnotation" : {
125+ "type" : " TSTypeAnnotation" ,
126+ "start" :93 ,"end" :99 ,"loc" :{"start" :{"line" :4 ,"column" :32 },"end" :{"line" :4 ,"column" :38 }},
127+ "typeAnnotation" : {
128+ "type" : " TSVoidKeyword" ,
129+ "start" :95 ,"end" :99 ,"loc" :{"start" :{"line" :4 ,"column" :34 },"end" :{"line" :4 ,"column" :38 }}
130+ }
131+ },
132+ "kind" : " method"
133+ }
134+ ]
135+ },
136+ "declare" : true
137+ }
138+ ],
139+ "directives" : []
140+ }
141+ }
0 commit comments