Interface ConstructorOptions<ItemType>

Constructor options of all in-memory store variants.

interface ConstructorOptions<ItemType> {
    data?: ItemType[];
    id?: string;
    idProperty?: string;
    metadata?: Partial<Metadata>;
    suggestContains?: boolean;
}

Type Parameters

  • ItemType

Properties

data?: ItemType[]

The array of items, on which the store is working.

id?: string

Id of the store.

idProperty?: string

Name of the idProperty. Default is "id"

metadata?: Partial<Metadata>

The metadata of the store instance.

suggestContains?: boolean

Flag if $suggest searches are interpreted as contains inside value. Default is true.

Generated using TypeDoc