Skip to content

WriteUnionInstance

Defined in: runtime/union.ts:28

TWriteItem extends WriteItem = WriteItem

readonly prn: string

Defined in: runtime/index.ts:43

ReadUnionInstance.prn

getItem(id): Promise<TWriteItem | undefined>

Defined in: runtime/union.ts:44

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<TWriteItem | undefined>

ReadUnionInstance.getItem


isMember(template): boolean

Defined in: runtime/union.ts:6

PrnInstance

boolean

ReadUnionInstance.isMember


isType(value): value is TWriteItem

Defined in: runtime/union.ts:32

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

unknown

value is TWriteItem

ReadUnionInstance.isType


memberPrns(): string[]

Defined in: runtime/union.ts:37

Returns the member template prns of this union

string[]

ReadUnionInstance.memberPrns


selectItems(): UnionCursorSelector<WriteItem<ItemInstanceTypes>>

Defined in: runtime/union.ts:46

UnionCursorSelector<WriteItem<ItemInstanceTypes>>

ReadUnionInstance.selectItems