Skip to content

Commit

Permalink
fix: deploy ts errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bbb169 committed Oct 20, 2023
1 parent 283f43a commit 87f403e
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/playRoom/hooks/useAudioRTC.ts
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ export interface AudioInfo {
}

/** use RTC to audio communicate */
export default function useAudioRTC (socket: Socket | void, startRecord = false, setStartRecord: (value: boolean) => void): [AudioInfo] {
export default function useAudioRTC (socket: Socket | void, startRecord = false, setStartRecord: (value: boolean) => void): [AudioInfo | undefined] {
const [recorder, setRecorder] = useState<RecordRTC.RecordRTCPromisesHandler>();
const [buffer, setBuffer] = useState<AudioInfo>();

2 changes: 1 addition & 1 deletion src/utils/infoContext.ts
Original file line number Diff line number Diff line change
@@ -8,5 +8,5 @@ export const infoContext = createContext<{
player?: PlayerInfoType,
otherPlayers?: PlayerInfoType[],
victoryPlayers?: [PlayerInfoType, VictoryInfo][]
socket?: Socket
socket?: Socket | void;
}>({});

0 comments on commit 87f403e

Please sign in to comment.