[96ma.ts[0m:[93m4[0m:[93m7[0m - [91merror[0m[90m TS2322: [0mType 'string' is not assignable to type 'number'.

[7m4[0m const n: number = greet(42)
[7m [0m [91m      ~[0m

[96ma.ts[0m:[93m4[0m:[93m25[0m - [91merror[0m[90m TS2345: [0mArgument of type 'number' is not assignable to parameter of type 'string'.

[7m4[0m const n: number = greet(42)
[7m [0m [91m                        ~~[0m

[96ma.ts[0m:[93m5[0m:[93m24[0m - [91merror[0m[90m TS2322: [0mType 'number' is not assignable to type 'string'.

[7m5[0m let items: string[] = [1, 2, 3]
[7m [0m [91m                       ~[0m

[96ma.ts[0m:[93m5[0m:[93m27[0m - [91merror[0m[90m TS2322: [0mType 'number' is not assignable to type 'string'.

[7m5[0m let items: string[] = [1, 2, 3]
[7m [0m [91m                          ~[0m

[96ma.ts[0m:[93m5[0m:[93m30[0m - [91merror[0m[90m TS2322: [0mType 'number' is not assignable to type 'string'.

[7m5[0m let items: string[] = [1, 2, 3]
[7m [0m [91m                             ~[0m

[96ma.ts[0m:[93m7[0m:[93m7[0m - [91merror[0m[90m TS2741: [0mProperty 'name' is missing in type '{ id: number; }' but required in type 'User'.

[7m7[0m const u: User = { id: 1 }
[7m [0m [91m      ~[0m

  [96ma.ts[0m:[93m6[0m:[93m30[0m
    [7m6[0m interface User { id: number; name: string }
    [7m [0m [96m                             ~~~~[0m
    'name' is declared here.

[96ma.ts[0m:[93m8[0m:[93m15[0m - [91merror[0m[90m TS2554: [0mExpected 1 arguments, but got 2.

[7m8[0m greet(u.name, "extra")
[7m [0m [91m              ~~~~~~~[0m

[96ma.ts[0m:[93m9[0m:[93m28[0m - [91merror[0m[90m TS2769: [0mNo overload matches this call.
  Overload 1 of 3, '(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string, initialValue: string): string', gave the following error.
    Argument of type '(a: number, b: string) => string' is not assignable to parameter of type '(previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string'.
      Types of parameters 'a' and 'previousValue' are incompatible.
        Type 'string' is not assignable to type 'number'.
  Overload 2 of 3, '(callbackfn: (previousValue: number, currentValue: string, currentIndex: number, array: string[]) => number, initialValue: number): number', gave the following error.
    Type 'string' is not assignable to type 'number'.

[7m9[0m export const total = items.reduce((a, b) => a + b, 0)
[7m [0m [91m                           ~~~~~~[0m

  [96m../../../../../../home/andrev/.npm/_npx/5abcb55351612887/node_modules/typescript/lib/lib.es5.d.ts[0m:[93m1495[0m:[93m27[0m
    [7m1495[0m     reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
    [7m    [0m [96m                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[0m
    The expected type comes from the return type of this signature.

