Skip to content

Commit c8032a2

Browse files
authored
Typescript fixes (#5157)
* Remove deprecated tsconfig baseUrl Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix imports in tests Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix duplicated map entry Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
1 parent 6e34ca6 commit c8032a2

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

spec/unit/matrix-client.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ import { mockOpenIdConfiguration } from "../test-utils/oidc.ts";
8888
import { type CryptoBackend } from "../../src/common-crypto/CryptoBackend";
8989
import { SyncResponder } from "../test-utils/SyncResponder.ts";
9090
import { mockInitialApiRequests } from "../test-utils/mockEndpoints.ts";
91-
import { type Transport } from "src/matrixrtc/index.ts";
91+
import { type Transport } from "../../src/matrixrtc/index.ts";
9292

9393
vi.useFakeTimers();
9494

spec/unit/matrixrtc/mocks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { type Mocked, type MockedObject } from "vitest";
2020
import { EventType, type Room, RoomEvent, type MatrixClient, type MatrixEvent } from "../../../src";
2121
import { CallMembership, type SessionMembershipData } from "../../../src/matrixrtc";
2222
import { secureRandomString } from "../../../src/randomstring";
23-
import { type CallMembershipIdentityParts } from "src/matrixrtc/EncryptionManager";
23+
import { type CallMembershipIdentityParts } from "../../../src/matrixrtc/EncryptionManager";
2424
import { logger } from "../../../src/logger.ts";
2525

2626
export type MembershipData = (SessionMembershipData | {}) & { user_id: string };

src/models/beacon.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ export type BeaconEventHandlerMap = {
3838
[BeaconEvent.LivenessChange]: (isLive: boolean, beacon: Beacon) => void;
3939
[BeaconEvent.Destroy]: (beaconIdentifier: string) => void;
4040
[BeaconEvent.LocationUpdate]: (locationState: BeaconLocationState) => void;
41-
[BeaconEvent.Destroy]: (beaconIdentifier: string) => void;
4241
};
4342

4443
export const isTimestampInDuration = (startTimestamp: number, durationMs: number, timestamp: number): boolean =>

tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"strict": true,
1212
"allowImportingTsExtensions": true,
1313
"lib": ["es2024", "dom", "dom.iterable"],
14-
"baseUrl": ".",
1514
"types": ["vitest/globals", "node"],
1615
"paths": {
1716
"#types/*": ["./node_modules/vite/types/*"]

0 commit comments

Comments
 (0)