API Reference > ecschema-Metadata > Metadata > parsePrimitiveType parsePrimitiveType Function Beta Tries to parse the given string as one of the 10 primitive types. parsePrimitiveType(type: string): PrimitiveType | undefined Parameter Type Description type string The primitive type string to parse. Returns - PrimitiveType | undefined A valid PrimitiveType if successfully parsed, or undefined if the provided string is not a valid PrimitiveType. Defined in core/ecschema-metadata/src/ECObjects.ts Line 233 Last Updated: 11 June, 2024