Interface _DataModel<SuperModel, TProps>

interface _DataModel<SuperModel, TProps extends ModelProps> {
    new _DataModel(
        data: _ComposedData<SuperModel, TProps>,
    ): SuperModel & BaseDataModel<TProps> & Omit<
        Flatten<
            {
                [k in string
                | number
                | symbol]: TProps[k]["$transformedValueType"]
            },
        >,
        BaseDataModelKeys,
    > & Flatten<
        {
            [k in string
            | number
            | symbol as TProps[k]["$hasSetter"] & `set${Capitalize<k & string>}`]: (
                value: TProps[k]["$transformedValueType"],
            ) => void
        },
    >;
}

Type Parameters

Constructors

Constructors

  • Parameters

    Returns SuperModel & BaseDataModel<TProps> & Omit<
        Flatten<
            { [k in string
            | number
            | symbol]: TProps[k]["$transformedValueType"] },
        >,
        BaseDataModelKeys,
    > & Flatten<
        {
            [k in string
            | number
            | symbol as TProps[k]["$hasSetter"] & `set${Capitalize<k & string>}`]: (
                value: TProps[k]["$transformedValueType"],
            ) => void
        },
    >