turbodombuilder - v0.9.22
    Preparing search index...

    Type Alias BlockChangeObserver<DataType, ComponentType, KeyType>

    type BlockChangeObserver<
        DataType = any,
        ComponentType extends object = any,
        KeyType extends string | number | symbol = string,
    > = {
        onAdded: Delegate<(data: DataType, id: KeyType) => ComponentType | void>;
        onUpdated: Delegate<
            (data: DataType, instance: ComponentType, id: KeyType) => void,
        >;
        onDeleted: Delegate<
            (data: DataType, instance: ComponentType, id: KeyType) => void,
        >;
        instances: Map<KeyType, ComponentType>;
        getInstance(key: KeyType): ComponentType;
        getAllInstances(): ComponentType[];
        initialize(): void;
        clear(): void;
        destroy(): void;
    }

    Type Parameters

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

    Properties

    onAdded: Delegate<(data: DataType, id: KeyType) => ComponentType | void>
    onUpdated: Delegate<
        (data: DataType, instance: ComponentType, id: KeyType) => void,
    >
    onDeleted: Delegate<
        (data: DataType, instance: ComponentType, id: KeyType) => void,
    >

    Methods

    • Returns void

    • Returns void

    • Returns void