mobx-keystone

    Variable objectActionsConst

    objectActions: {
        assign: <T extends object>(target: T, partialObject: Partial<T>) => void;
        call: <T extends object, K extends string | number | symbol>(
            target: T,
            methodName: K,
            ...args: T[K] extends AnyFunction ? Parameters<any[any]> : never,
        ) => T[K] extends AnyFunction ? ReturnType<any[any]> : never;
        create: <T extends object>(data: T) => T;
        delete: <T extends object, K extends string | number | symbol>(
            target: T,
            key: K,
        ) => boolean;
        set: <T extends object, K extends string | number | symbol>(
            target: T,
            key: K,
            value: T[K],
        ) => void;
    } = ...

    Type declaration

    • assign: <T extends object>(target: T, partialObject: Partial<T>) => void
    • call: <T extends object, K extends string | number | symbol>(
          target: T,
          methodName: K,
          ...args: T[K] extends AnyFunction ? Parameters<any[any]> : never,
      ) => T[K] extends AnyFunction ? ReturnType<any[any]> : never
    • create: <T extends object>(data: T) => T
    • delete: <T extends object, K extends string | number | symbol>(
          target: T,
          key: K,
      ) => boolean
    • set: <T extends object, K extends string | number | symbol>(
          target: T,
          key: K,
          value: T[K],
      ) => void
    MMNEPVFCICPMFPCPTTAAATR