turbodombuilder - v0.9.66
    Preparing search index...

    Type Alias TurboModelProperties<DataType, IdType>

    Configuration object used when creating a TurboModel.

    type TurboModelProperties<DataType = any, IdType extends KeyType = any> = {
        id?: IdType;
        data?: DataType;
        initialize?: boolean;
        enabledCallbacks?: boolean;
        bubbleChanges?: boolean;
        makeSignals?: boolean;
    }

    Type Parameters

    • DataType = any

      The type of data stored in the model.

    • IdType extends KeyType = any

      The type of the data's ID.

    Index

    Properties

    id?: IdType

    Optional ID attached to the model. Useful to reference the data in a nested structure.

    data?: DataType

    Initial data.

    initialize?: boolean

    If true, TurboModel.initialize is called immediately after construction.

    enabledCallbacks?: boolean
    bubbleChanges?: boolean
    makeSignals?: boolean