@temporary-escape/mod-sdk / IndexResult
Class: IndexResult<T extends Serializable>
Defined in: database/index-result.ts:7
A document returned by an index lookup: its database id together with the decoded document value.
Type Parameters
| Type Parameter |
|---|
T extends Serializable |
Constructors
Constructor
ts
new IndexResult<T extends Serializable>(id: number, value: T): IndexResult<T>;Defined in: database/index-result.ts:8
Parameters
| Parameter | Type |
|---|---|
id | number |
value | T |
Returns
IndexResult<T>
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
id | readonly | number | The database id of the document. | database/index-result.ts:14 |
value | readonly | T | The decoded document. | database/index-result.ts:17 |
