Make tsc check JS files with @ts-check annotations #613
Annotations
11 errors and 3 warnings
test:
tests/dehydrated_devices.test.ts#L136
Argument of type 'number' is not assignable to parameter of type 'Readonly<{ Untrusted: 0; "0": "Untrusted"; CrossSignedOrLegacy: 1; "1": "CrossSignedOrLegacy"; CrossSigned: 2; "2": "CrossSigned"; }>'.
|
test:
tests/libolm_migration.test.ts#L32
Argument of type 'number' is not assignable to parameter of type 'Readonly<{ Trace: 0; "0": "Trace"; Debug: 1; "1": "Debug"; Info: 2; "2": "Info"; Warn: 3; "3": "Warn"; Error: 4; "4": "Error"; }>'.
|
test:
tests/machine.test.ts#L539
Argument of type 'number' is not assignable to parameter of type 'Readonly<{ KeysUpload: 0; "0": "KeysUpload"; KeysQuery: 1; "1": "KeysQuery"; KeysClaim: 2; "2": "KeysClaim"; ToDevice: 3; "3": "ToDevice"; SignatureUpload: 4; "4": "SignatureUpload"; RoomMessage: 5; "5": "RoomMessage"; KeysBackup: 6; "6": "KeysBackup"; }>'.
|
test:
tests/machine.test.ts#L562
Argument of type 'number' is not assignable to parameter of type 'Readonly<{ KeysUpload: 0; "0": "KeysUpload"; KeysQuery: 1; "1": "KeysQuery"; KeysClaim: 2; "2": "KeysClaim"; ToDevice: 3; "3": "ToDevice"; SignatureUpload: 4; "4": "SignatureUpload"; RoomMessage: 5; "5": "RoomMessage"; KeysBackup: 6; "6": "KeysBackup"; }>'.
|
test:
tests/machine.test.ts#L581
Argument of type 'number' is not assignable to parameter of type 'Readonly<{ KeysUpload: 0; "0": "KeysUpload"; KeysQuery: 1; "1": "KeysQuery"; KeysClaim: 2; "2": "KeysClaim"; ToDevice: 3; "3": "ToDevice"; SignatureUpload: 4; "4": "SignatureUpload"; RoomMessage: 5; "5": "RoomMessage"; KeysBackup: 6; "6": "KeysBackup"; }>'.
|
test:
tests/machine.test.ts#L624
Argument of type 'number' is not assignable to parameter of type 'Readonly<{ Untrusted: 0; "0": "Untrusted"; CrossSignedOrLegacy: 1; "1": "CrossSignedOrLegacy"; CrossSigned: 2; "2": "CrossSigned"; }>'.
|
test:
tests/machine.test.ts#L667
Argument of type 'number' is not assignable to parameter of type 'Readonly<{ Untrusted: 0; "0": "Untrusted"; CrossSignedOrLegacy: 1; "1": "CrossSignedOrLegacy"; CrossSigned: 2; "2": "CrossSigned"; }>'.
|
test:
tests/machine.test.ts#L1057
Argument of type 'number' is not assignable to parameter of type 'Readonly<{ KeysUpload: 0; "0": "KeysUpload"; KeysQuery: 1; "1": "KeysQuery"; KeysClaim: 2; "2": "KeysClaim"; ToDevice: 3; "3": "ToDevice"; SignatureUpload: 4; "4": "SignatureUpload"; RoomMessage: 5; "5": "RoomMessage"; KeysBackup: 6; "6": "KeysBackup"; }>'.
|
test:
tests/machine.test.ts#L1552
Type 'number' is not assignable to type 'Readonly<{ OlmV1Curve25519AesSha2: 0; "0": "OlmV1Curve25519AesSha2"; MegolmV1AesSha2: 1; "1": "MegolmV1AesSha2"; Unknown: 2; "2": "Unknown"; }>'.
|
test:
tests/machine.test.ts#L1568
Type 'number' is not assignable to type 'Readonly<{ OlmV1Curve25519AesSha2: 0; "0": "OlmV1Curve25519AesSha2"; MegolmV1AesSha2: 1; "1": "MegolmV1AesSha2"; Unknown: 2; "2": "Unknown"; }>'.
|
docs
Process completed with exit code 3.
|
lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
docs
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|