Skip to content

Commit

Permalink
Merge pull request #187 from whereby/havard/pan-685-remove-usage-of-any
Browse files Browse the repository at this point in the history
Fix "Unexpected any" warnings
  • Loading branch information
havardholvik authored Jan 10, 2024
2 parents 9c48cfb + 6f98270 commit 59a3c63
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/lib/core/redux/slices/localMedia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export const localMediaSlice = createSlice({
stream: undefined,
};
},
// eslint-disable-next-line @typescript-eslint/no-unused-vars
stopScreenshare(state, action: PayloadAction<{ stream: MediaStream }>) {
return {
...state,
Expand Down
1 change: 1 addition & 0 deletions src/lib/core/redux/tests/store.setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ export function createStore({ initialState, withSignalConnection, withRtcManager

const store = createRealStore({
preloadedState: initialState,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
injectServices: mockServices as any,
});

Expand Down
4 changes: 2 additions & 2 deletions src/lib/embed/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ define("WherebyEmbed", {

try {
({ roomUrl, subdomain } = parseRoomUrlAndSubdomain(room, this.subdomain));
} catch (error: any) {
return this.html`Whereby: ${error.message}`;
} catch (error) {
return this.html`Whereby: ${error instanceof Error ? error.message : "unknown error"}`;
}

this.roomUrl = roomUrl;
Expand Down

0 comments on commit 59a3c63

Please sign in to comment.