Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ModelManagerService<M, MM>

Type parameters

Hierarchy

Callable

  • ModelManagerService(): MM
  • Returns MM

Index

Constructors

constructor

  • new ModelManagerService<M, MM>(owner: M, serviceName: undefined | string): ModelManagerService<M, MM>
  • Type parameters

    Parameters

    • owner: M
    • serviceName: undefined | string

    Returns ModelManagerService<M, MM>

Properties

Readonly inherit

inherit: string | boolean

Readonly manager

manager: MM

Readonly name

name: string

Optional observe

observe: boolean

Readonly ownManager

ownManager: undefined | MM

Readonly owner

owner: M

Readonly serviceFlags

serviceFlags: number

Readonly superManager

superManager: undefined | MM

Readonly superName

superName: undefined | string

Readonly superService

superService: null | ModelService<Model, MM>

Readonly traitServices

traitServices: readonly TraitService<Trait, MM>[]

Optional Readonly type

type: unknown

Static InheritedFlag

InheritedFlag: number

Methods

addTraitService

  • Parameters

    Returns void

bindSuperService

  • bindSuperService(): void
  • Returns void

getManager

  • getManager(): NonNullable<MM>
  • Returns NonNullable<MM>

getManagerOr

  • getManagerOr<E>(elseManager: E): NonNullable<MM> | E
  • Type parameters

    • E

    Parameters

    • elseManager: E

    Returns NonNullable<MM> | E

initManager

  • initManager(): MM
  • Returns MM

isInherited

  • isInherited(): boolean
  • Returns boolean

mount

  • mount(): void
  • Returns void

removeTraitService

  • Parameters

    Returns void

setInherit

  • setInherit(inherit: string | boolean): void
  • Parameters

    • inherit: string | boolean

    Returns void

setServiceFlags

  • setServiceFlags(serviceFlags: number): void
  • Parameters

    • serviceFlags: number

    Returns void

unbindSuperService

  • unbindSuperService(): void
  • Returns void

unmount

  • unmount(): void
  • Returns void

Static define

  • Type parameters

    • M_6: Model<M_6>

    • T_6

    • I_1 = {}

    Parameters

    Returns ModelServiceConstructor<M_6, T_6, I_1>

  • Type parameters

    Parameters

    Returns ModelServiceConstructor<M_7, T_7, {}>

Static getClass

  • Parameters

    • type: unknown

    Returns null | ModelServiceClass

Generated using TypeDoc