interface Type<C, B, I> { new Typenew (agent: Agent,
backing: BehaviorBacking): Instance<C, B, I>; cluster: C; defaults: ClusterState.Type<C, B>; dependencies?: Iterable<Type, any, any>; early: boolean; Events: ClusterEvents.Type<C, B>; ExtensionInterface: ExtensionInterfaceOf<B>; id: Uncapitalize<C["name"]>; Interface: I; Internal: B["Internal"]; name: string; schema?: Schema; State: (new () => ClusterState.Type<C, B>); supervisor: RootSupervisor; supports: ((other: Type) => boolean); alter<This, const AlterationsT>(this: This,
alterations: AlterationsT): Type<WithAlterations<This["cluster"], AlterationsT>, This, ClusterInterface.InterfaceOf<This>>; enable<This, const FlagsT>(this: This,
flags: FlagsT): Type<WithAlterations<This["cluster"], ElementFlagAlterations<FlagsT>>, This, ClusterInterface.InterfaceOf<This>>; for<This, const ClusterT>(this: This,
cluster: ClusterT,
schema?: Schema): Type<ClusterT, This, ClusterInterface.InterfaceOf<This>>; set<This>(this: This,
defaults: Partial<RelaxTypes<InstanceType<This["State"]>>>): This; with<This, const FeaturesT>(this: This,
...features: FeaturesT): Type<WithFeatures<This["cluster"], FeaturesT>, This, ClusterInterface.InterfaceOf<This>>; } Constructors
constructor
- new Type(agent, backing): Instance<C, B, I>
Parameters
- agent: Agent
- backing: BehaviorBacking
Properties
Readonly
cluster
Readonly
defaults
Optional
Readonly
dependencies
dependencies?: Iterable<Type, any, any> Readonly
early
early: boolean
Readonly
Events
Readonly
ExtensionInterface
Readonly
id
id: Uncapitalize<C["name"]> Readonly
Interface
Readonly
Internal
Readonly
name
name: string
Optional
Readonly
schema
Readonly
State
Readonly
supervisor
supports
supports: ((other: Type) => boolean) Type declaration
- (other): boolean
Returns boolean
Methods
set
- set<This>(this, defaults): This
A ClusterBehavior specialized for a specific Cluster.