Skip to content

Commit eb24acf

Browse files
fix(types): fix Condition variable type property
When I retrieve a form from Typeform I notice that some of my condition variables have the value `'choice'` as the type, i.e. ``` { "op": "is", "vars": [ { "type": "field", "value": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" }, { "type": "choice", "value": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" } ] }, ``` The value `'choice'` doesn't appear to be listed in the docs Create API docs: https://developer.typeform.com/create/reference/create-form/ If i've misunderstood, feel free to close this PR. Otherwise, this PR adds the value `'choice'` to the Condition var `type` property.
1 parent 26f35f7 commit eb24acf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/typeform-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export namespace Typeform {
176176
/**
177177
* Type of value the condition object refers to.
178178
*/
179-
type?: 'field' | 'hidden' | 'variable' | 'constant' | 'end'
179+
type?: 'field' | 'hidden' | 'variable' | 'constant' | 'end'| 'choice'
180180
/**
181181
* Value to check for in the "type" field to evaluate with the operator.
182182
*/

0 commit comments

Comments
 (0)