Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

IndexNames

Extract the names of indexes in certain object stores from the DB schema type.

type IndexNames<DBTypes extends DBSchema | unknown, StoreName extends StoreNames<DBTypes>> = DBTypes extends DBSchema ? keyof DBTypes[StoreName]["indexes"] : string;

§Type Parameters

§
DBTypes extends DBSchema | unknown
[src]
§
StoreName extends StoreNames<DBTypes>
[src]

§Type

§
DBTypes extends DBSchema ? keyof DBTypes[StoreName]["indexes"] : string
[src]