TOC Toolkit API - v0.1.0
    Preparing search index...

    Interface StoreBehavior<K>

    The behaviour of one store kind.

    interface StoreBehavior<K extends StoreKind> {
        kind: K;
        check(
            spec: StoreSpecs[K],
            operation: StoreOperations[K],
        ): readonly StoreIssue[];
        overlap(first: StoreOperations[K], second: StoreOperations[K]): boolean;
        identity(spec: StoreSpecs[K]): Maybe<StoreOperations[K]>;
        symbols(operation: StoreOperations[K]): readonly AlphabetSymbol[];
        prepare(
            spec: StoreSpecs[K],
            codes: SymbolCodes,
            pools: StorePools,
        ): PreparedStore<K>;
    }

    Type Parameters

    Index
    kind: K