Skip to content

Commit

Permalink
fix(screeb-sdk-react): fix surveyStart helper typing
Browse files Browse the repository at this point in the history
  • Loading branch information
vincsb authored and cley44 committed Oct 2, 2024
1 parent 4ef931b commit 169dc4c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions packages/screeb-sdk-react/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ ___

### SurveyStartFunction

Ƭ **SurveyStartFunction**: (`surveyId`: `string`, `allowMultipleResponses`: `boolean`, `hiddenFields`: `PropertyRecord`, `hooks`: `Hooks`, `language`: `string`) => `Promise`\<`unknown`\>
Ƭ **SurveyStartFunction**: (`surveyId`: `string`, `allowMultipleResponses`: `boolean`, `hiddenFields`: `PropertyRecord`, `hooks?`: `Hooks`, `language?`: `string`) => `Promise`\<`unknown`\>

Starts a survey by its ID.

Expand All @@ -538,7 +538,7 @@ surveyStart(

#### Type declaration

▸ (`surveyId`, `allowMultipleResponses`, `hiddenFields`, `hooks`, `language`): `Promise`\<`unknown`\>
▸ (`surveyId`, `allowMultipleResponses`, `hiddenFields`, `hooks?`, `language?`): `Promise`\<`unknown`\>

##### Parameters

Expand All @@ -547,8 +547,8 @@ surveyStart(
| `surveyId` | `string` |
| `allowMultipleResponses` | `boolean` |
| `hiddenFields` | `PropertyRecord` |
| `hooks` | `Hooks` |
| `language` | `string` |
| `hooks?` | `Hooks` |
| `language?` | `string` |

##### Returns

Expand Down
4 changes: 2 additions & 2 deletions packages/screeb-sdk-react/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,8 @@ export type SurveyStartFunction = (
surveyId: string,
allowMultipleResponses: boolean,
hiddenFields: PropertyRecord,
hooks: Hooks,
language: string,
hooks?: Hooks,
language?: string,
) => Promise<unknown>;

/**
Expand Down

0 comments on commit 169dc4c

Please sign in to comment.