lookupItemSync Method


lookupItemSync(key)

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

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

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

Returns - SchemaItem | undefined



lookupItemSync<T extends SchemaItem>(key, itemConstructor)

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

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

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

Returns - InstanceType<T> | undefined


Defined in

Last Updated: 07 May, 2026