mobx-keystone

    Interface _Model<SuperModel, TProps, FromSnapshotOverride, ToSnapshotOverride>

    interface _Model<
        SuperModel,
        TProps extends ModelProps,
        FromSnapshotOverride extends Record<string, any>,
        ToSnapshotOverride extends Record<string, any>,
    > {
        new _Model(
            data: _ComposedCreationData<SuperModel, TProps>,
        ): SuperModel & BaseModel<
            TProps,
            FromSnapshotOverride,
            ToSnapshotOverride,
            _ModelId<SuperModel, TProps>,
        > & Omit<
            Flatten<
                {
                    [k in string
                    | number
                    | symbol]: TProps[k]["$transformedValueType"]
                },
            >,
            BaseModelKeys,
        > & Flatten<
            {
                [k in string
                | number
                | symbol as TProps[k]["$hasSetter"] & `set${Capitalize<k & string>}`]: (
                    value: TProps[k]["$transformedValueType"],
                ) => void
            },
        >;
    }

    Type Parameters

    • SuperModel
    • TProps extends ModelProps
    • FromSnapshotOverride extends Record<string, any>
    • ToSnapshotOverride extends Record<string, any>
    Index

    Constructors

    Constructors

    MMNEPVFCICPMFPCPTTAAATR