|
| 1 | +tests/cases/compiler/findLast.ts(1,44): error TS2550: Property 'findLast' does not exist on type 'number[]'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 2 | +tests/cases/compiler/findLast.ts(2,51): error TS2550: Property 'findLast' does not exist on type 'string[]'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 3 | +tests/cases/compiler/findLast.ts(3,17): error TS2550: Property 'findLast' does not exist on type 'Int8Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 4 | +tests/cases/compiler/findLast.ts(4,18): error TS2550: Property 'findLast' does not exist on type 'Uint8Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 5 | +tests/cases/compiler/findLast.ts(5,25): error TS2550: Property 'findLast' does not exist on type 'Uint8ClampedArray'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 6 | +tests/cases/compiler/findLast.ts(6,18): error TS2550: Property 'findLast' does not exist on type 'Int16Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 7 | +tests/cases/compiler/findLast.ts(7,19): error TS2550: Property 'findLast' does not exist on type 'Uint16Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 8 | +tests/cases/compiler/findLast.ts(8,18): error TS2550: Property 'findLast' does not exist on type 'Int32Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 9 | +tests/cases/compiler/findLast.ts(9,19): error TS2550: Property 'findLast' does not exist on type 'Uint32Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 10 | +tests/cases/compiler/findLast.ts(10,20): error TS2550: Property 'findLast' does not exist on type 'Float32Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 11 | +tests/cases/compiler/findLast.ts(11,20): error TS2550: Property 'findLast' does not exist on type 'Float64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 12 | +tests/cases/compiler/findLast.ts(12,21): error TS2550: Property 'findLast' does not exist on type 'BigInt64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 13 | +tests/cases/compiler/findLast.ts(13,22): error TS2550: Property 'findLast' does not exist on type 'BigUint64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 14 | +tests/cases/compiler/findLast.ts(15,33): error TS2550: Property 'findLastIndex' does not exist on type 'number[]'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 15 | +tests/cases/compiler/findLast.ts(16,40): error TS2550: Property 'findLastIndex' does not exist on type 'string[]'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 16 | +tests/cases/compiler/findLast.ts(17,17): error TS2550: Property 'findLastIndex' does not exist on type 'Int8Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 17 | +tests/cases/compiler/findLast.ts(18,18): error TS2550: Property 'findLastIndex' does not exist on type 'Uint8Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 18 | +tests/cases/compiler/findLast.ts(19,25): error TS2550: Property 'findLastIndex' does not exist on type 'Uint8ClampedArray'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 19 | +tests/cases/compiler/findLast.ts(20,18): error TS2550: Property 'findLastIndex' does not exist on type 'Int16Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 20 | +tests/cases/compiler/findLast.ts(21,19): error TS2550: Property 'findLastIndex' does not exist on type 'Uint16Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 21 | +tests/cases/compiler/findLast.ts(22,18): error TS2550: Property 'findLastIndex' does not exist on type 'Int32Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 22 | +tests/cases/compiler/findLast.ts(23,19): error TS2550: Property 'findLastIndex' does not exist on type 'Uint32Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 23 | +tests/cases/compiler/findLast.ts(24,20): error TS2550: Property 'findLastIndex' does not exist on type 'Float32Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 24 | +tests/cases/compiler/findLast.ts(25,20): error TS2550: Property 'findLastIndex' does not exist on type 'Float64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 25 | +tests/cases/compiler/findLast.ts(26,21): error TS2550: Property 'findLastIndex' does not exist on type 'BigInt64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 26 | +tests/cases/compiler/findLast.ts(27,22): error TS2550: Property 'findLastIndex' does not exist on type 'BigUint64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 27 | + |
| 28 | + |
| 29 | +==== tests/cases/compiler/findLast.ts (26 errors) ==== |
| 30 | + const itemNumber: number | undefined = [0].findLast((item) => item === 0); |
| 31 | + ~~~~~~~~ |
| 32 | +!!! error TS2550: Property 'findLast' does not exist on type 'number[]'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 33 | + const itemString: string | undefined = ["string"].findLast((item) => item === "string"); |
| 34 | + ~~~~~~~~ |
| 35 | +!!! error TS2550: Property 'findLast' does not exist on type 'string[]'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 36 | + new Int8Array().findLast((item) => item === 0); |
| 37 | + ~~~~~~~~ |
| 38 | +!!! error TS2550: Property 'findLast' does not exist on type 'Int8Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 39 | + new Uint8Array().findLast((item) => item === 0); |
| 40 | + ~~~~~~~~ |
| 41 | +!!! error TS2550: Property 'findLast' does not exist on type 'Uint8Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 42 | + new Uint8ClampedArray().findLast((item) => item === 0); |
| 43 | + ~~~~~~~~ |
| 44 | +!!! error TS2550: Property 'findLast' does not exist on type 'Uint8ClampedArray'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 45 | + new Int16Array().findLast((item) => item === 0); |
| 46 | + ~~~~~~~~ |
| 47 | +!!! error TS2550: Property 'findLast' does not exist on type 'Int16Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 48 | + new Uint16Array().findLast((item) => item === 0); |
| 49 | + ~~~~~~~~ |
| 50 | +!!! error TS2550: Property 'findLast' does not exist on type 'Uint16Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 51 | + new Int32Array().findLast((item) => item === 0); |
| 52 | + ~~~~~~~~ |
| 53 | +!!! error TS2550: Property 'findLast' does not exist on type 'Int32Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 54 | + new Uint32Array().findLast((item) => item === 0); |
| 55 | + ~~~~~~~~ |
| 56 | +!!! error TS2550: Property 'findLast' does not exist on type 'Uint32Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 57 | + new Float32Array().findLast((item) => item === 0); |
| 58 | + ~~~~~~~~ |
| 59 | +!!! error TS2550: Property 'findLast' does not exist on type 'Float32Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 60 | + new Float64Array().findLast((item) => item === 0); |
| 61 | + ~~~~~~~~ |
| 62 | +!!! error TS2550: Property 'findLast' does not exist on type 'Float64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 63 | + new BigInt64Array().findLast((item) => item === BigInt(0)); |
| 64 | + ~~~~~~~~ |
| 65 | +!!! error TS2550: Property 'findLast' does not exist on type 'BigInt64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 66 | + new BigUint64Array().findLast((item) => item === BigInt(0)); |
| 67 | + ~~~~~~~~ |
| 68 | +!!! error TS2550: Property 'findLast' does not exist on type 'BigUint64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 69 | + |
| 70 | + const indexNumber: number = [0].findLastIndex((item) => item === 0); |
| 71 | + ~~~~~~~~~~~~~ |
| 72 | +!!! error TS2550: Property 'findLastIndex' does not exist on type 'number[]'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 73 | + const indexString: number = ["string"].findLastIndex((item) => item === "string"); |
| 74 | + ~~~~~~~~~~~~~ |
| 75 | +!!! error TS2550: Property 'findLastIndex' does not exist on type 'string[]'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 76 | + new Int8Array().findLastIndex((item) => item === 0); |
| 77 | + ~~~~~~~~~~~~~ |
| 78 | +!!! error TS2550: Property 'findLastIndex' does not exist on type 'Int8Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 79 | + new Uint8Array().findLastIndex((item) => item === 0); |
| 80 | + ~~~~~~~~~~~~~ |
| 81 | +!!! error TS2550: Property 'findLastIndex' does not exist on type 'Uint8Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 82 | + new Uint8ClampedArray().findLastIndex((item) => item === 0); |
| 83 | + ~~~~~~~~~~~~~ |
| 84 | +!!! error TS2550: Property 'findLastIndex' does not exist on type 'Uint8ClampedArray'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 85 | + new Int16Array().findLastIndex((item) => item === 0); |
| 86 | + ~~~~~~~~~~~~~ |
| 87 | +!!! error TS2550: Property 'findLastIndex' does not exist on type 'Int16Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 88 | + new Uint16Array().findLastIndex((item) => item === 0); |
| 89 | + ~~~~~~~~~~~~~ |
| 90 | +!!! error TS2550: Property 'findLastIndex' does not exist on type 'Uint16Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 91 | + new Int32Array().findLastIndex((item) => item === 0); |
| 92 | + ~~~~~~~~~~~~~ |
| 93 | +!!! error TS2550: Property 'findLastIndex' does not exist on type 'Int32Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 94 | + new Uint32Array().findLastIndex((item) => item === 0); |
| 95 | + ~~~~~~~~~~~~~ |
| 96 | +!!! error TS2550: Property 'findLastIndex' does not exist on type 'Uint32Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 97 | + new Float32Array().findLastIndex((item) => item === 0); |
| 98 | + ~~~~~~~~~~~~~ |
| 99 | +!!! error TS2550: Property 'findLastIndex' does not exist on type 'Float32Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 100 | + new Float64Array().findLastIndex((item) => item === 0); |
| 101 | + ~~~~~~~~~~~~~ |
| 102 | +!!! error TS2550: Property 'findLastIndex' does not exist on type 'Float64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 103 | + new BigInt64Array().findLastIndex((item) => item === BigInt(0)); |
| 104 | + ~~~~~~~~~~~~~ |
| 105 | +!!! error TS2550: Property 'findLastIndex' does not exist on type 'BigInt64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 106 | + new BigUint64Array().findLastIndex((item) => item === BigInt(0)); |
| 107 | + ~~~~~~~~~~~~~ |
| 108 | +!!! error TS2550: Property 'findLastIndex' does not exist on type 'BigUint64Array'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2023' or later. |
| 109 | + |
0 commit comments