Options
Menu

Class Configuration

The Global configuration for all ActiveJS constructs, Units, Systems, Action and Cluster.

See https://docs.activejs.dev/guides/configuration for more details.

Hierarchy

  • Configuration

Accessors

Static ACTION

Static ASYNC_SYSTEM

Static BOOL_UNIT

Static CLUSTER

Static DICT_UNIT

Static ENVIRONMENT

Static GENERIC_UNIT

Static LIST_UNIT

Static NUM_UNIT

Static STRING_UNIT

Static UNITS

Static storage

  • get storage(): Readonly<Storage>

Methods

Static enableProdMode

  • enableProdMode(): void

Static isDevMode

  • isDevMode(): boolean

Static reset

  • reset(): void
  • Resets all global configurations to their default/empty state.
    It doesn't affect any currently existing instances, it's only applicable to the instances created after this.

    Returns void

Static set

  • Sets and overrides default configurations.
    These configurations can still be overridden at the time of instantiation.

    It should only be called once in the whole app. Calling it second time doesn't merge the new configuration, it simply rewrites it.

    However, the defaults are not affected by this behavior,
    they have to be overridden specifically every time.

    Parameters

    Returns void