Skip to content

Commit a0ada2e

Browse files
authored
update type signature for disconnect (#344)
1 parent f9dd3f5 commit a0ada2e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/next-app/components/ExampleComponent.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export const ExampleComponent = () => {
117117
<button
118118
className="rounded border border-neutral-500 p-2"
119119
onClick={() => {
120-
disconnect();
120+
void disconnect();
121121
}}
122122
>
123123
Disconnect
@@ -300,7 +300,7 @@ export const ExampleComponent = () => {
300300
<button
301301
className="rounded border border-red-500 p-2 text-red-500"
302302
onClick={() => {
303-
disconnect();
303+
void disconnect();
304304
}}
305305
>
306306
Disconnect

packages/react/src/lib/VoiceProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ type ResourceStatus =
9393

9494
export type VoiceContextType = {
9595
connect: (options?: ConnectOptions) => Promise<void>;
96-
disconnect: () => void;
96+
disconnect: () => Promise<void>;
9797
fft: number[];
9898
isMuted: boolean;
9999
isAudioMuted: boolean;

0 commit comments

Comments
 (0)