Skip to content

Commit

Permalink
fix: set proper error code type
Browse files Browse the repository at this point in the history
  • Loading branch information
marsidev committed Jun 6, 2024
1 parent 942f07d commit 3f7f9f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/lib/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ interface RenderOptions {
/**
* Callback invoked when there is an error (e.g. network error or the challenge failed), it receives the error code as argument. Refer to [Client-side errors](https://developers.cloudflare.com/turnstile/reference/client-side-errors).
*/
'error-callback'?: (errorCode: number) => void
'error-callback'?: (errorCode: string) => void

/**
* Execution controls when to obtain the token of the widget and can be on `'render'` (default) or on `'execute'`. See {@link https://developers.cloudflare.com/turnstile/get-started/client-side-rendering/#execution-modes the docs} for more info.
Expand Down

0 comments on commit 3f7f9f2

Please sign in to comment.