Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TraitService<R, T>

Type parameters

Hierarchy

  • TraitService

Callable

  • TraitService(): T
  • Returns T

Index

Properties

Readonly inherit

inherit: string | boolean

Readonly manager

manager: T

Readonly modelService

modelService: null | ModelService<Model, T>

Optional modelServiceConstructor

modelServiceConstructor: ModelServiceConstructor<Model, T, {}>

Readonly name

name: string

Optional observe

observe: boolean

Readonly ownManager

ownManager: undefined | T

Readonly owner

owner: R

Readonly serviceFlags

serviceFlags: number

Readonly superManager

superManager: undefined | T

Readonly superName

superName: undefined | string

Readonly superService

superService: null | ModelService<Model, T>

Optional Readonly type

type: unknown

Methods

attach

  • attach(): void
  • Returns void

bindModelService

  • bindModelService(): void
  • Returns void

createModelService

  • Returns ModelService<Model, T>

detach

  • detach(): void
  • Returns void

getManager

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

getManagerOr

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

    • E

    Parameters

    • elseManager: E

    Returns NonNullable<T> | E

Optional initManager

  • initManager(): T
  • Returns T

isInherited

  • isInherited(): boolean
  • Returns boolean

setInherit

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

    • inherit: string | boolean

    Returns void

setServiceFlags

  • setServiceFlags(serviceFlags: number): void
  • Parameters

    • serviceFlags: number

    Returns void

unbindModelService

  • unbindModelService(): void
  • Returns void

Generated using TypeDoc