Skip to content

Commit 28526fd

Browse files
Enable noImplicitAny for acs-ui-common, calling-stateful-client and calling-component-bindings packlets (#3908)
1 parent 8884bd9 commit 28526fd

20 files changed

Lines changed: 65 additions & 24 deletions
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"type": "none",
3+
"area": "improvement",
4+
"workstream": "",
5+
"comment": "Enable noImplicitAny for calling stateful packages",
6+
"packageName": "@azure/communication-react",
7+
"email": "2684369+JamesBurnside@users.noreply.github.com",
8+
"dependentChangeType": "none"
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"type": "minor",
3+
"area": "fix",
4+
"workstream": "",
5+
"comment": "Fix function type signature of StatefulCallClient.selectCamera",
6+
"packageName": "@azure/communication-react",
7+
"email": "2684369+JamesBurnside@users.noreply.github.com",
8+
"dependentChangeType": "patch"
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"type": "none",
3+
"area": "improvement",
4+
"workstream": "",
5+
"comment": "Enable noImplicitAny for calling stateful packages",
6+
"packageName": "@azure/communication-react",
7+
"email": "2684369+JamesBurnside@users.noreply.github.com",
8+
"dependentChangeType": "none"
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"type": "minor",
3+
"area": "fix",
4+
"workstream": "",
5+
"comment": "Fix function type signature of StatefulCallClient.selectCamera",
6+
"packageName": "@azure/communication-react",
7+
"email": "2684369+JamesBurnside@users.noreply.github.com",
8+
"dependentChangeType": "patch"
9+
}

packages/acs-ui-common/src/telemetry.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4-
import * as telemetryVersion from './telemetryVersion';
4+
import telemetryVersion from './telemetryVersion';
55

66
/**
77
* @private
@@ -64,6 +64,6 @@ export const _getApplicationId = (telemetryImplementationHint: _TelemetryImpleme
6464
const highLevelArtifact = 1;
6565
const specificImplementation = getTelemetryImplementationHint(telemetryImplementationHint);
6666
const implementationDetails = 0;
67-
const version = telemetryVersion['default'];
67+
const version = telemetryVersion;
6868
return sanitize(`acr${highLevelArtifact}${specificImplementation}${implementationDetails}/${version}`);
6969
};

packages/acs-ui-common/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extends": "../../common/config/tsc/tsconfig.json",
33
"compilerOptions": {
4-
"noImplicitAny": false, // TODO: MAKE THIS true
4+
"noImplicitAny": true,
55
"outDir": "./dist/dist-esm"
66
},
77
"typeRoots": ["./node_modules/@types"],

packages/acs-ui-common/tsconfig.preprocess.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"extends": "../../common/config/tsc/tsconfig.json",
33
"compilerOptions": {
44
"baseUrl": "./preprocessed",
5-
"noImplicitAny": false, // TODO: MAKE THIS true
5+
"noImplicitAny": true,
66
"outDir": "./dist/dist-esm"
77
},
88
"typeRoots": ["./node_modules/@types"],

packages/calling-component-bindings/src/participantListSelector.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ const convertRemoteParticipantsToParticipantListParticipants = (
3636
isHideAttendeeNamesEnabled?: boolean,
3737
localUserRole?: ParticipantRole
3838
): CallParticipantListParticipant[] => {
39-
/* eslint-disable @typescript-eslint/explicit-function-return-type */
40-
const conversionCallback = (memoizeFn) => {
39+
const conversionCallback = (
40+
memoizeFn: (...args: any[]) => CallParticipantListParticipant
41+
): CallParticipantListParticipant[] => {
4142
return (
4243
remoteParticipants
4344
// Filter out MicrosoftBot participants

packages/calling-component-bindings/src/videoGallerySelector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export const videoGallerySelector: VideoGallerySelector = createSelector(
100100
const dominantSpeakerIds = _dominantSpeakersWithFlatId(dominantSpeakers);
101101
const dominantSpeakersMap: Record<string, number> = {};
102102
dominantSpeakerIds?.forEach((speaker, idx) => (dominantSpeakersMap[speaker] = idx));
103-
const noRemoteParticipants = [];
103+
const noRemoteParticipants: RemoteParticipantState[] = [];
104104

105105
return {
106106
screenShareParticipant: screenShareRemoteParticipant

packages/calling-component-bindings/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extends": "../../common/config/tsc/tsconfig.json",
33
"compilerOptions": {
4-
"noImplicitAny": false, // TODO: MAKE THIS true
4+
"noImplicitAny": true,
55
"outDir": "./dist/dist-esm"
66
},
77
"typeRoots": ["./node_modules/@types"],

0 commit comments

Comments
 (0)