Skip to content

@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 ​

ParameterType
idnumber
valueT

Returns ​

IndexResult<T>

Properties ​

PropertyModifierTypeDescriptionDefined in
idreadonlynumberThe database id of the document.database/index-result.ts:14
valuereadonlyTThe decoded document.database/index-result.ts:17