File tree Expand file tree Collapse file tree 3 files changed +17
-7
lines changed Expand file tree Collapse file tree 3 files changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -213,6 +213,11 @@ export class Container extends VariantBase {
213
213
export class Inherits {
214
214
type : TypeName
215
215
generics ?: ValueOf [ ]
216
+ }
217
+
218
+ export class Behavior {
219
+ type : TypeName
220
+ generics ?: ValueOf [ ]
216
221
meta ?: { [ p : string ] : string }
217
222
}
218
223
@@ -232,7 +237,7 @@ export class Interface extends BaseType {
232
237
/**
233
238
* Behaviors directly implemented by this interface
234
239
*/
235
- behaviors ?: Inherits [ ]
240
+ behaviors ?: Behavior [ ]
236
241
237
242
/**
238
243
* Behaviors attached to this interface, coming from the interface itself (see `behaviors`)
@@ -276,7 +281,7 @@ export class Request extends BaseType {
276
281
* that don't have a body.
277
282
*/
278
283
body : Body
279
- behaviors ?: Inherits [ ]
284
+ behaviors ?: Behavior [ ]
280
285
attachedBehaviors ?: string [ ]
281
286
}
282
287
@@ -287,7 +292,7 @@ export class Response extends BaseType {
287
292
kind : 'response'
288
293
generics ?: TypeName [ ]
289
294
body : Body
290
- behaviors ?: Inherits [ ]
295
+ behaviors ?: Behavior [ ]
291
296
attachedBehaviors ?: string [ ]
292
297
exceptions ?: ResponseException [ ]
293
298
}
Original file line number Diff line number Diff line change @@ -414,7 +414,7 @@ export function modelImplements (node: ExpressionWithTypeArguments): model.Inher
414
414
* A class could have multiple behaviors from multiple classes,
415
415
* which are defined inside the node typeArguments.
416
416
*/
417
- export function modelBehaviors ( node : ExpressionWithTypeArguments , jsDocs : JSDoc [ ] ) : model . Inherits {
417
+ export function modelBehaviors ( node : ExpressionWithTypeArguments , jsDocs : JSDoc [ ] ) : model . Behavior {
418
418
const behaviorName = node . getExpression ( ) . getText ( )
419
419
const generics = node . getTypeArguments ( ) . map ( node => modelType ( node ) )
420
420
Original file line number Diff line number Diff line change @@ -213,6 +213,11 @@ export class Container extends VariantBase {
213
213
export class Inherits {
214
214
type : TypeName
215
215
generics ?: ValueOf [ ]
216
+ }
217
+
218
+ export class Behavior {
219
+ type : TypeName
220
+ generics ?: ValueOf [ ]
216
221
meta ?: { [ p : string ] : string }
217
222
}
218
223
@@ -232,7 +237,7 @@ export class Interface extends BaseType {
232
237
/**
233
238
* Behaviors directly implemented by this interface
234
239
*/
235
- behaviors ?: Inherits [ ]
240
+ behaviors ?: Behavior [ ]
236
241
237
242
/**
238
243
* Behaviors attached to this interface, coming from the interface itself (see `behaviors`)
@@ -276,7 +281,7 @@ export class Request extends BaseType {
276
281
* that don't have a body.
277
282
*/
278
283
body : Body
279
- behaviors ?: Inherits [ ]
284
+ behaviors ?: Behavior [ ]
280
285
attachedBehaviors ?: string [ ]
281
286
}
282
287
@@ -287,7 +292,7 @@ export class Response extends BaseType {
287
292
kind : 'response'
288
293
generics ?: TypeName [ ]
289
294
body : Body
290
- behaviors ?: Inherits [ ]
295
+ behaviors ?: Behavior [ ]
291
296
attachedBehaviors ?: string [ ]
292
297
exceptions ?: ResponseException [ ]
293
298
}
You can’t perform that action at this time.
0 commit comments