Skip to content

Commit

Permalink
changing the onResponse signal response type to be a Promise
Browse files Browse the repository at this point in the history
  • Loading branch information
OvidijusParsiunas committed Dec 23, 2024
1 parent 21f0902 commit 415f64f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion component/src/types/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import {Response} from './response';

export interface Signals {
onResponse: (response: Response) => void;
onResponse: (response: Response) => Promise<void>;
onOpen: () => void;
onClose: () => void;
stopClicked: {listener: () => void};
Expand Down
2 changes: 1 addition & 1 deletion website/docs/docs/connect.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ Error handling must be done within the `handler` function.
#### `Signals` {#Signals}

- Type: \{ <br />
&nbsp;&nbsp;&nbsp;&nbsp;[`onResponse: (response: Response) => void`](#Response), <br />
&nbsp;&nbsp;&nbsp;&nbsp;[`onResponse: (response: Response) => Promise<void>`](#Response), <br />
&nbsp;&nbsp;&nbsp;&nbsp;`onOpen: () => void`, <br />
&nbsp;&nbsp;&nbsp;&nbsp;`onClose: () => void`, <br />
&nbsp;&nbsp;&nbsp;&nbsp;`stopClicked: {listener: () => void}`, <br />
Expand Down

0 comments on commit 415f64f

Please sign in to comment.