lookupItem Method


lookupItem(key)

Attempts to find a schema item within this schema or a (directly) referenced schema

lookupItem(key: string | Readonly<SchemaItemKey>): Promise<SchemaItem | undefined>

Parameter Type Description
key string | Readonly<SchemaItemKey> The full name or a SchemaItemKey identifying the desired item.

Returns - Promise<SchemaItem | undefined>



lookupItem<T extends SchemaItem>(key, itemConstructor)

Attempts to find a schema item within this schema or a (directly) referenced schema

lookupItem<T extends SchemaItem>(key: string | Readonly<SchemaItemKey>, itemConstructor: T): Promise<InstanceType<T> | undefined>

Parameter Type Description
key string | Readonly<SchemaItemKey> The full name or a SchemaItemKey identifying the desired item.
itemConstructor T  

Returns - Promise<InstanceType<T> | undefined>


Defined in

Last Updated: 28 April, 2026