Skip to content

Welshman Docs / @welshman/app / CollectionOptions

Type Alias: CollectionOptions<T> ​

CollectionOptions<T> = object

Defined in: app/src/collection.ts:79

Type Parameters ​

T ​

T

Properties ​

getKey() ​

getKey: (item) => string

Defined in: app/src/collection.ts:82

Parameters ​

item ​

T

Returns ​

string


load() ​

load: (key, relays) => Promise<any>

Defined in: app/src/collection.ts:83

Parameters ​

key ​

string

relays ​

string[]

Returns ​

Promise<any>


name ​

name: string

Defined in: app/src/collection.ts:80


store ​

store: Readable<T[]>

Defined in: app/src/collection.ts:81