TemplatePropertiesBuilder
Defined in: builder/template.ts:42
Extended by
Section titled “Extended by”Properties
Section titled “Properties”properties
Section titled “properties”
readonlyproperties:Record<string,JsonPropertyBuilder|TemplatePropertyBuilder>
Defined in: builder/template.ts:43
Methods
Section titled “Methods”addProperty()
Section titled “addProperty()”addProperty<
TType>(key,type,options?):TTypeextends keyofTemplatePropertyBuilderMap?TemplatePropertyBuilderMap[TType] :TemplatePropertyBuilder
Defined in: builder/template.ts:49
Adds a data type property of the given type to the payload for this transition.
Type Parameters
Section titled “Type Parameters”TType extends ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>> | PropertyDefinitionType
Parameters
Section titled “Parameters”string
TType
options?
Section titled “options?”Returns
Section titled “Returns”TType extends keyof TemplatePropertyBuilderMap ? TemplatePropertyBuilderMap[TType] : TemplatePropertyBuilder