Skip to content

getOrThrow

getOrThrow<T>(instance, type, key): NonNullable<Required<InstanceConfig>[T][keyof Required<InstanceConfig>[T]]>

Defined in: astrobase/src/instance/instance.ts:85

Retrieves an item from the instance configuration. If the target item is not available, InstanceReferenceError is thrown.

T extends "codecs" | "procedures" | "hashAlgs" | "schemes" | "wraps"

Instance

T

keyof Required<InstanceConfig>[T]

NonNullable<Required<InstanceConfig>[T][keyof Required<InstanceConfig>[T]]>