Skip to content

ReadUnionInstance

Defined in: runtime/union.ts:5

TReadItem extends ReadItem = ReadItem

readonly prn: string

Defined in: runtime/index.ts:43

PrnInstance.prn

getItem(id): Promise<TReadItem | undefined>

Defined in: runtime/union.ts:23

Returns the item of the given identifier if it is of the type of this union. If the item does not exist, there are insufficient permissions, or the union does not match; will result in undefined.

Identifier

Promise<TReadItem | undefined>


isMember(template): boolean

Defined in: runtime/union.ts:6

PrnInstance

boolean


isType(value): value is TReadItem

Defined in: runtime/union.ts:11

Returns true if the supplied item is of the type of this union.

unknown

value is TReadItem


memberPrns(): string[]

Defined in: runtime/union.ts:16

Returns the member template prns of this union

string[]


selectItems(): UnionCursorSelector<ReadItem>

Defined in: runtime/union.ts:25

UnionCursorSelector<ReadItem>