lsync API
    Preparing search index...

    Type Alias CollectionEntity<T, TKey, TChildren>

    CollectionEntity: {
        all(): Collection<T, TKey>;
        delete(config?: OperationConfig): Transaction<any>;
        get(): WithVirtualProps<T, TKey> | undefined;
        update(
            callback: (draft: WritableDeep<T>) => void,
        ): Transaction<Record<string, unknown>>;
        update(
            config: OperationConfig,
            callback: (draft: WritableDeep<T>) => void,
        ): Transaction<Record<string, unknown>>;
    } & ChildManagers<TChildren>

    Type Parameters

    • T extends object
    • TKey extends string | number
    • TChildren extends CollectionTypeChildren = {}