@logixjs/core
    Preparing search index...

    Function computed

    • StateTrait.computed:

      • Declares computed semantics for a field.
      • Uses explicit deps as the single source of truth for dependencies (diagnostics / reverse-closure / incremental sched).

      Type Parameters

      • S extends object
      • P
      • const Deps extends readonly (
            S extends object
                ? {
                    [K in string]:
                        | K
                        | (
                            IsPlainObject<S<S>[K]> extends true
                                ? Join<
                                    K,
                                    S<S>[K] extends object
                                        ? { [K in string]: (...) | (...) }[keyof (...) & string]
                                        : never,
                                >
                                : never
                        )
                }[keyof S<S> & string]
                : never
        )[]

      Parameters

      • input: {
            deps: Deps;
            equals?: (prev: StateAtPath<S, P>, next: StateAtPath<S, P>) => boolean;
            get: (...depsValues: DepsArgs<S, Deps>) => StateAtPath<S, P>;
            scheduling?: TraitConvergeScheduling;
        }
        • Readonlydeps: Deps
        • Optional Readonlyequals?: (prev: StateAtPath<S, P>, next: StateAtPath<S, P>) => boolean
        • Readonlyget: (...depsValues: DepsArgs<S, Deps>) => StateAtPath<S, P>
        • Optional Readonlyscheduling?: TraitConvergeScheduling

          043: explicit converge time-slicing scheduling.

          • unset: immediate (default behavior unchanged)
          • deferred: can be postponed and merged into later windows (requires runtime time-slicing enabled)

      Returns StateTraitEntry<S, P>