Typed Bus / Exports
Ƭ ConsumerMethod: Object
Name | Type |
---|---|
contract |
iots.Any |
id |
string |
matchEvent |
MatchEvent |
exec |
(...args : any []) => any |
• Const
TypedBus: TypedBusClass
• Const
context: Context
▸ Consume<I
>(contract
, options?
): (target
: any
, _propertyName
: string
, propertyDescriptor
: PropertyDescriptor
) => PropertyDescriptor
Decorator @Consume(contract, combine?: { with, name })
.
Consumes an event that matches the io-ts type.
Name | Type |
---|---|
I |
extends Any <I > |
Name | Type |
---|---|
contract |
I |
options |
Object |
options.combine? |
Object |
options.combine.name |
string |
options.combine.with |
Any |
options.listenTo? |
string [] |
fn
▸ (target
, _propertyName
, propertyDescriptor
): PropertyDescriptor
Name | Type |
---|---|
target |
any |
_propertyName |
string |
propertyDescriptor |
PropertyDescriptor |
PropertyDescriptor