getSchemaItem Method


getSchemaItem<T extends >(schemaItemKey, itemConstructor)

getSchemaItem<T extends >(schemaItemKey: SchemaItemKey, itemConstructor: T): Promise<undefined | InstanceType<T>>

Parameter Type Description
schemaItemKey SchemaItemKey  
itemConstructor T  

Returns - Promise<undefined | InstanceType<T>>



getSchemaItem(schemaItemKey)

Gets the schema item from the specified schema if it exists in this SchemaContext. Will await a partially loaded schema then look in it for the requested item

getSchemaItem(schemaItemKey: SchemaItemKey): Promise<undefined | SchemaItem>

@returns The requested schema item

Parameter Type Description
schemaItemKey SchemaItemKey The SchemaItemKey identifying the item to return. SchemaMatchType.Latest is used to match the schema.

Returns - Promise<undefined | SchemaItem>

The requested schema item


Defined in

Last Updated: 21 February, 2025