turbodombuilder - v0.9.22
    Preparing search index...

    Type Alias BlockChangeObserverProperties<DataType, ComponentType, KeyType>

    type BlockChangeObserverProperties<
        DataType = any,
        ComponentType extends object = any,
        KeyType extends string | number | symbol = string,
    > = {
        initialize?: boolean;
        onAdded?: (data: DataType, id: KeyType) => ComponentType | void;
        onUpdated?: (data: DataType, instance: ComponentType, id: KeyType) => void;
        onDeleted?: (data: DataType, instance: ComponentType, id: KeyType) => void;
    }

    Type Parameters

    • DataType = any
    • ComponentType extends object = any
    • KeyType extends string | number | symbol = string
    Index

    Properties

    initialize?: boolean
    onAdded?: (data: DataType, id: KeyType) => ComponentType | void
    onUpdated?: (data: DataType, instance: ComponentType, id: KeyType) => void
    onDeleted?: (data: DataType, instance: ComponentType, id: KeyType) => void