Profile
A profile implementation for one profile major version.
Type Parameters
Section titled “Type Parameters”Desc extends DescMessage = DescMessage
Translation
Section titled “Translation”Translation = unknown
Properties
Section titled “Properties”capability
Section titled “capability”
readonlycapability:DialectCapabilityProfile
Machine-readable base capability declaration for the profile.
outputSchema
Section titled “outputSchema”
readonlyoutputSchema:Desc
Protobuf schema of the profile’s sole predicate output type.
translate
Section titled “translate”
readonlytranslate: (context,functions) =>MessageShape<Desc>
Produces one complete predicate through this constructed profile and its selected libraries.
Parameters
Section titled “Parameters”context
Section titled “context”functions
Section titled “functions”ReadonlyMap<string, Translation>
Returns
Section titled “Returns”MessageShape<Desc>
validate
Section titled “validate”
readonlyvalidate: (context,functions) =>void
Verifies one expression through this constructed profile and its selected libraries.
Parameters
Section titled “Parameters”context
Section titled “context”functions
Section titled “functions”ReadonlyMap<string, Translation>
Returns
Section titled “Returns”void
validateConfiguration?
Section titled “validateConfiguration?”
readonlyoptionalvalidateConfiguration?: (profileConfiguration?) =>void
Validates trusted profile configuration before any translation outcome is selected.
Parameters
Section titled “Parameters”profileConfiguration?
Section titled “profileConfiguration?”Any
Returns
Section titled “Returns”void