Skip to content

Latest commit

 

History

History
111 lines (67 loc) · 2.11 KB

modules.md

File metadata and controls

111 lines (67 loc) · 2.11 KB

Typed Bus / Exports

Typed Bus

Table of contents

Classes

Type aliases

Variables

Functions

Type aliases

ConsumerMethod

Ƭ ConsumerMethod: Object

Type declaration

Name Type
contract iots.Any
id string
matchEvent MatchEvent
exec (...args: any[]) => any

Defined in

engine/transport.ts:11

Variables

TypedBus

Const TypedBus: TypedBusClass

Defined in

engine/instance.ts:4


context

Const context: Context

Defined in

context/context.ts:15

Functions

Consume

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.

Type parameters

Name Type
I extends Any<I>

Parameters

Name Type
contract I
options Object
options.combine? Object
options.combine.name string
options.combine.with Any
options.listenTo? string[]

Returns

fn

▸ (target, _propertyName, propertyDescriptor): PropertyDescriptor

Parameters
Name Type
target any
_propertyName string
propertyDescriptor PropertyDescriptor
Returns

PropertyDescriptor

Defined in

decorators/consume.ts:11