Framework base class 'Domain', class must be extends this base class which is need to be observable.

Type Parameters

  • S extends object = {}

Hierarchy

Constructors

  • Type Parameters

    • S extends object = {}

    Returns Domain<S>

Properties

$$turboxProperties: {
    $$turboxProperties?: { $$turboxProperties?: ... | undefined; initDomainContext?: (() => DomainContext) | undefined; propertyGet?: ((key: string, config: ReactorConfig, hasInitializer?: boolean | undefined, defaultValue?: any) => any) | undefined; propertySet?: ((key: string, v: any, config: ReactorConfig) => void) | undefined; computedP...;
    $update?<K>(obj, actionName?, displayName?, forceSaveHistory?, isNeedRecord?, immediately?): void;
    computedPropertyGet?<T>(key, options?, descriptor?): T;
    computedPropertySet?<T>(key, original): void;
    initDomainContext?(): DomainContext;
    propertyGet?(key, config, hasInitializer?, defaultValue?): any;
    propertySet?(key, v, config): void;
}

Type declaration

  • Optional $$turboxProperties?: { $$turboxProperties?: ... | undefined; initDomainContext?: (() => DomainContext) | undefined; propertyGet?: ((key: string, config: ReactorConfig, hasInitializer?: boolean | undefined, defaultValue?: any) => any) | undefined; propertySet?: ((key: string, v: any, config: ReactorConfig) => void) | undefined; computedP...
  • $update?:function
    • the syntax sweet of updating state out of mutation

      Type Parameters

      • K extends string | number | symbol

      Parameters

      • obj: S | Pick<S, K>
      • Optional actionName: string
      • Optional displayName: string
      • Optional forceSaveHistory: boolean
      • Optional isNeedRecord: boolean
      • Optional immediately: boolean

      Returns void

  • computedPropertyGet?:function
    • Type Parameters

      • T

      Parameters

      • key: string
      • Optional options: ComputedOption
      • Optional descriptor: PropertyDescriptor

      Returns T

  • computedPropertySet?:function
    • Type Parameters

      • T

      Parameters

      • key: string
      • original: any

      Returns void

  • initDomainContext?:function
    • Returns DomainContext

  • propertyGet?:function
    • Parameters

      • key: string
      • config: ReactorConfig
      • Optional hasInitializer: boolean
      • Optional defaultValue: any

      Returns any

  • propertySet?:function
    • Parameters

      • key: string
      • v: any
      • config: ReactorConfig

      Returns void

collectionProxyHandler: any
computedProperties: any
context: any
currentTarget?: any
dispatch: any
getCollectionHandlerMap: any
illegalAssignmentCheck: any

observed value could be assigned value to

Reactor

only in @mutation/$update, otherwise throw error.

originalArrayLength?: any
proxyDeleteProperty: any
proxyGet: any
proxyOwnKeys: any
proxyReactive: any

proxy value could be boolean, string, number, undefined, null, custom instance, array[], plainObject{}, Map, Set, WeakMap, WeakSet

proxySet: any
reactorConfigMap: any

Methods

  • the syntax sweet of updating state out of mutation

    Type Parameters

    • K extends string | number | symbol

    Parameters

    • obj: S | Pick<S, K>
    • Optional actionName: string
    • Optional displayName: string
    • Optional forceSaveHistory: boolean
    • Optional isNeedRecord: boolean
    • Optional immediately: boolean

    Returns void

  • Type Parameters

    • T

    Parameters

    • key: string
    • Optional options: ComputedOption
    • Optional descriptor: PropertyDescriptor

    Returns T

  • Type Parameters

    • T

    Parameters

    • key: string
    • original: any

    Returns void

  • Returns DomainContext

  • Parameters

    • key: string
    • config: ReactorConfig
    • Optional hasInitializer: boolean
    • Optional defaultValue: any

    Returns any

  • Parameters

    • key: string
    • v: any
    • config: ReactorConfig

    Returns void

Generated using TypeDoc