turbodombuilder - v0.9.48
    Preparing search index...

    Type Alias DataBlockProperties<DataType, IdType>

    Configuration object used when creating a TurboDataBlock.

    type DataBlockProperties<
        DataType = any,
        IdType extends string | number | symbol = any,
    > = {
        id?: IdType;
        data?: DataType;
        initialize?: boolean;
    }

    Type Parameters

    • DataType = any

      The type of data stored in the block.

    • IdType extends string | number | symbol = any

      The type of the data's ID.

    Index

    Properties

    Properties

    id?: IdType

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

    data?: DataType

    Initial data.

    initialize?: boolean

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