baml.sap.parse_type
Parse against a runtime `type` value when the schema is data rather than a lexical type parameter. Narrow the returned `unknown` at the call site.
Reference version
Signature
function baml.sap.parse_type(t: reflect.Type, text: string) -> unknown throws baml.errors.ParseError
Parse against a runtime type value when the schema is data rather than a
lexical type parameter. Narrow the returned unknown at the call site.
It is generally recommended to use baml.sap.parse instead.
Source:<builtin>/baml/ns_sap/sap.bamlbytes 2137–2278