@@ -172,17 +172,56 @@ if an inner type may result in invalid output without them. For example:
172
172
{{ #unless @first }}
173
173
<span class =" tsd-signature-symbol" >; </span >
174
174
{{ /unless }}
175
- {{ name }}
176
- {{ #if flags.isOptional }}
177
- <span class =" tsd-signature-symbol" >?: </span >
175
+
176
+ {{ #if getSignature }}
177
+ {{ #if setSignature }}
178
+ {{ name }}
179
+ <span class =" tsd-signature-symbol" >: </span >
180
+ {{ #with getSignature.type }}
181
+ {{> type }}
182
+ {{ else }}
183
+ <span class =" tsd-signature-type" >any</span >
184
+ {{ /with }}
185
+ {{ else }}
186
+ <span class =" tsd-signature-symbol" >get </span >
187
+ {{ name }}
188
+ <span class =" tsd-signature-symbol" >(): </span >
189
+ {{ #with getSignature.type }}
190
+ {{> type }}
191
+ {{ else }}
192
+ <span class =" tsd-signature-type" >any</span >
193
+ {{ /with }}
194
+ {{ /if }}
178
195
{{ else }}
179
- <span class =" tsd-signature-symbol" >: </span >
196
+ {{ #if setSignature }}
197
+ <span class =" tsd-signature-symbol" >set </span >
198
+ {{ name }}
199
+ <span class =" tsd-signature-symbol" >(</span >
200
+ {{! Rather hacky to use each here... but we know there is exactly one. }}
201
+ {{ #each setSignature.parameters }}
202
+ {{ name }}
203
+ <span class =" tsd-signature-symbol" >: </span >
204
+ {{ #with type }}
205
+ {{> type }}
206
+ {{ else }}
207
+ <span class =" tsd-signature-type" >any</span >
208
+ {{ /with }}
209
+ {{ /each }}
210
+ <span class =" tsd-signature-symbol" >)</span >
211
+ {{ else }}
212
+ {{ name }}
213
+ {{ #if flags.isOptional }}
214
+ <span class =" tsd-signature-symbol" >?: </span >
215
+ {{ else }}
216
+ <span class =" tsd-signature-symbol" >: </span >
217
+ {{ /if }}
218
+ {{ #with type }}
219
+ {{> type }}
220
+ {{ else }}
221
+ <span class =" tsd-signature-type" >any</span >
222
+ {{ /with }}
223
+ {{ /if }}
180
224
{{ /if }}
181
- {{ #with type }}
182
- {{> type }}
183
- {{ else }}
184
- <span class =" tsd-signature-type" >any</span >
185
- {{ /with }}
186
225
{{ /each }}
187
226
<span class =" tsd-signature-symbol" > }</span >
188
227
{{ else if declaration.signatures}}
0 commit comments