gradum-kit - v0.1.0
    Preparing search index...

    Type Alias ScopedKey<KeyType, BlockKeyType>

    An item key together with the block it belongs to, used to address an entry that is scoped to one block rather than to the store as a whole.

    type ScopedKey<KeyType = any, BlockKeyType = any> = {
        blockKey?: BlockKeyType;
        key?: KeyType;
    }

    Type Parameters

    • KeyType = any

      The per-item key type.

    • BlockKeyType = any

      The block-grouping key type.

    Index
    blockKey?: BlockKeyType

    The block the item belongs to. Omit it to target the default block.

    key?: KeyType

    The item's key inside that block.