bazel-out/k8-fastbuild/bin/example.ts:9:39 - error TS2345: Argument of type 'false | any[]' is not assignable to parameter of type 'MessageArray'.
Type 'boolean' is not assignable to type 'any[]'.
9 pb_1.Message.initialize(this, Array.isArray(data) && data, 0, -1, [], null);
~~~~~~~~~~~~~~~~~~~~~~~~~~~
bazel-out/k8-fastbuild/bin/example.ts:11:13 - error TS2322: Type 'number | undefined' is not assignable to type 'number'.
Type 'undefined' is not assignable to type 'number'.
11 this.a = data.a;
~~~~~~
bazel-out/k8-fastbuild/bin/example.ts:12:13 - error TS2322: Type 'number | undefined' is not assignable to type 'number'.
Type 'undefined' is not assignable to type 'number'.
12 this.b = data.b;
~~~~~~
bazel-out/k8-fastbuild/bin/example.ts:16:16 - error TS2352: Conversion of type 'undefined' to type 'number' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
16 return pb_1.Message.getFieldWithDefault(this, 1, undefined) as number;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bazel-out/k8-fastbuild/bin/example.ts:22:16 - error TS2352: Conversion of type 'undefined' to type 'number' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
22 return pb_1.Message.getFieldWithDefault(this, 2, undefined) as number;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bazel-out/k8-fastbuild/bin/example.ts:66:39 - error TS2345: Argument of type 'false | any[]' is not assignable to parameter of type 'MessageArray'.
Type 'boolean' is not assignable to type 'any[]'.
66 pb_1.Message.initialize(this, Array.isArray(data) && data, 0, -1, [], null);
~~~~~~~~~~~~~~~~~~~~~~~~~~~
bazel-out/k8-fastbuild/bin/example.ts:68:13 - error TS2322: Type 'number | undefined' is not assignable to type 'number'.
Type 'undefined' is not assignable to type 'number'.
68 this.result = data.result;
~~~~~~~~~~~
bazel-out/k8-fastbuild/bin/example.ts:72:16 - error TS2352: Conversion of type 'undefined' to type 'number' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
72 return pb_1.Message.getFieldWithDefault(this, 1, undefined) as number;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bazel-out/k8-fastbuild/bin/example.ts:112:61 - error TS2769: No overload matches this call.
The last overload gave the following error.
Argument of type 'Uint8Array | undefined' is not assignable to parameter of type 'string'.
Type 'undefined' is not assignable to type 'string'.
112 requestSerialize: (message: Request) => Buffer.from(message.serialize()),
~~~~~~~~~~~~~~~~~~~
external/npm/node_modules/@types/node/ts3.1/globals.d.ts:153:12
153 static from(str: string, encoding?: BufferEncoding): Buffer;
~~~~
The last overload is declared here.
bazel-out/k8-fastbuild/bin/example.ts:114:63 - error TS2769: No overload matches this call.
The last overload gave the following error.
Argument of type 'Uint8Array | undefined' is not assignable to parameter of type 'string'.
Type 'undefined' is not assignable to type 'string'.
114 responseSerialize: (message: Response) => Buffer.from(message.serialize()),
~~~~~~~~~~~~~~~~~~~
external/npm/node_modules/@types/node/ts3.1/globals.d.ts:153:12
153 static from(str: string, encoding?: BufferEncoding): Buffer;
~~~~
The last overload is declared here.