parseSchemaItemType Function

Tries to parse the given string as one of the 8 schema item types.

parseSchemaItemType(type: string): SchemaItemType | undefined

@returns A valid SchemaItemType if successfully parsed. Otherwise, undefined if the provided string is not a valid SchemaItemType.

Parameter Type Description
type string The schema item type string to parse.

Returns - SchemaItemType | undefined

A valid SchemaItemType if successfully parsed. Otherwise, undefined if the provided string is not a valid SchemaItemType.

Defined in

Last Updated: 16 April, 2024