Store class which is used to store all the resources, tasks, middleware and events.

Constructors

Properties

eventManager: EventManager
events: Map<string, EventStoreElementType> = ...
middlewares: Map<string, MiddlewareStoreElementType<any>> = ...
resources: Map<string, ResourceStoreElementType<any, any, {}>> = ...
root: ResourceStoreElementType<any, any, {}>
tasks: Map<string, TaskStoreElementType<any, any, any>> = ...

Accessors

  • get isLocked(): boolean
  • Returns boolean

Methods

  • middlewares are already stored in their final form and the check for them would be redundant

    Parameters

    • id: string

    Returns void

  • Returns Promise<void>

  • Returns IDependentNode[]

  • Store the root before beginning registration

    Parameters

    Returns void

  • If you want to register something to the store you can use this function.

    Type Parameters

    • C

    Parameters

    Returns void