getSchemaItem Method

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<T extends SchemaItem>(schemaItemKey: SchemaItemKey): Promise<undefined | T>

@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 | T>

The requested schema item

Defined in

Last Updated: 23 November, 2024