Refactor/update dependencies #3
Errors 9
Found 9 errors
Annotations
Check failure on line 3 in packages/grpc-error-status/src/error-status.ts
github-actions / TypeCheck
Could not find a declaration file for module 'google-protobuf'. '/home/runner/work/grpc/.yarn/berry/cache/google-protobuf-npm-3.17.3-7a71f34d03-10.zip/node_modules/google-protobuf/google-protobuf.js' implicitly has an 'any' type.
Could not find a declaration file for module 'google-protobuf'. '/home/runner/work/grpc/.yarn/berry/cache/google-protobuf-npm-3.17.3-7a71f34d03-10.zip/node_modules/google-protobuf/google-protobuf.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/google-protobuf` if it exists or add a new declaration (.d.ts) file containing `declare module 'google-protobuf';`
Raw output
1 | import { Metadata } from '@grpc/grpc-js'
2 | import { ServiceError } from '@grpc/grpc-js'
> 3 | import { Message } from 'google-protobuf'
| ^
4 | import { Any } from 'google-protobuf/google/protobuf/any_pb'
5 |
6 | import { Code } from '../proto/google/rpc/code_pb'
Check failure on line 4 in packages/grpc-error-status/src/error-status.ts
github-actions / TypeCheck
Could not find a declaration file for module 'google-protobuf/google/protobuf/any_pb'. '/home/runner/work/grpc/.yarn/berry/cache/google-protobuf-npm-3.17.3-7a71f34d03-10.zip/node_modules/google-protobuf/google/protobuf/any_pb.js' implicitly has an 'any' type.
Could not find a declaration file for module 'google-protobuf/google/protobuf/any_pb'. '/home/runner/work/grpc/.yarn/berry/cache/google-protobuf-npm-3.17.3-7a71f34d03-10.zip/node_modules/google-protobuf/google/protobuf/any_pb.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/google-protobuf` if it exists or add a new declaration (.d.ts) file containing `declare module 'google-protobuf/google/protobuf/any_pb';`
Raw output
2 | import { ServiceError } from '@grpc/grpc-js'
3 | import { Message } from 'google-protobuf'
> 4 | import { Any } from 'google-protobuf/google/protobuf/any_pb'
| ^
5 |
6 | import { Code } from '../proto/google/rpc/code_pb'
7 | import { Status } from '../proto/google/rpc/status_pb'
Check failure on line 18 in packages/grpc-error-status/src/google.rpc.ts
github-actions / TypeCheck
Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'typeof import("/home/runner/work/grpc/grpc/packages/grpc-error-status/proto/google/rpc/error_details_pb")'.
Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'typeof import("/home/runner/work/grpc/grpc/packages/grpc-error-status/proto/google/rpc/error_details_pb")'.
No index signature with a parameter of type 'string' was found on type 'typeof import("/home/runner/work/grpc/grpc/packages/grpc-error-status/proto/google/rpc/error_details_pb")'.
Raw output
16 | (result, key) => ({
17 | ...result,
> 18 | [`google.rpc.${key}`]: errorDetails[key].deserializeBinary,
| ^
19 | }),
20 | {}
21 | )
Check failure on line 25 in packages/grpc-error-status/src/google.rpc.ts
github-actions / TypeCheck
Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'typeof import("/home/runner/work/grpc/grpc/packages/grpc-error-status/proto/google/rpc/error_details_pb")'.
Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'typeof import("/home/runner/work/grpc/grpc/packages/grpc-error-status/proto/google/rpc/error_details_pb")'.
No index signature with a parameter of type 'string' was found on type 'typeof import("/home/runner/work/grpc/grpc/packages/grpc-error-status/proto/google/rpc/error_details_pb")'.
Raw output
23 | export const getGoogleDeserializeBinary = (typeName: string) => {
24 | if (typeName.startsWith('google.rpc.')) {
> 25 | return errorDetails[typeName.replace('google.rpc.', '')]?.deserializeBinary
| ^
26 | }
27 |
28 | return errorDetails[typeName]?.deserializeBinary
Check failure on line 28 in packages/grpc-error-status/src/google.rpc.ts
github-actions / TypeCheck
Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'typeof import("/home/runner/work/grpc/grpc/packages/grpc-error-status/proto/google/rpc/error_details_pb")'.
Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'typeof import("/home/runner/work/grpc/grpc/packages/grpc-error-status/proto/google/rpc/error_details_pb")'.
No index signature with a parameter of type 'string' was found on type 'typeof import("/home/runner/work/grpc/grpc/packages/grpc-error-status/proto/google/rpc/error_details_pb")'.
Raw output
26 | }
27 |
> 28 | return errorDetails[typeName]?.deserializeBinary
| ^
29 | }
30 |
31 | export const getGoogleErrorDetailsTypeName = (detail): string | undefined =>
Check failure on line 31 in packages/grpc-error-status/src/google.rpc.ts
github-actions / TypeCheck
Parameter 'detail' implicitly has an 'any' type.
Parameter 'detail' implicitly has an 'any' type.
Raw output
29 | }
30 |
> 31 | export const getGoogleErrorDetailsTypeName = (detail): string | undefined =>
| ^
32 | Object.keys(errorDetails).reduce((result: string | undefined, key) => {
33 | if (errorDetails[key] instanceof Function && detail instanceof errorDetails[key]) {
34 | return `google.rpc.${key}`
Check failure on line 33 in packages/grpc-error-status/src/google.rpc.ts
github-actions / TypeCheck
Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'typeof import("/home/runner/work/grpc/grpc/packages/grpc-error-status/proto/google/rpc/error_details_pb")'.
Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'typeof import("/home/runner/work/grpc/grpc/packages/grpc-error-status/proto/google/rpc/error_details_pb")'.
No index signature with a parameter of type 'string' was found on type 'typeof import("/home/runner/work/grpc/grpc/packages/grpc-error-status/proto/google/rpc/error_details_pb")'.
Raw output
31 | export const getGoogleErrorDetailsTypeName = (detail): string | undefined =>
32 | Object.keys(errorDetails).reduce((result: string | undefined, key) => {
> 33 | if (errorDetails[key] instanceof Function && detail instanceof errorDetails[key]) {
| ^
34 | return `google.rpc.${key}`
35 | }
36 |
Check failure on line 33 in packages/grpc-error-status/src/google.rpc.ts
github-actions / TypeCheck
Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'typeof import("/home/runner/work/grpc/grpc/packages/grpc-error-status/proto/google/rpc/error_details_pb")'.
Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'typeof import("/home/runner/work/grpc/grpc/packages/grpc-error-status/proto/google/rpc/error_details_pb")'.
No index signature with a parameter of type 'string' was found on type 'typeof import("/home/runner/work/grpc/grpc/packages/grpc-error-status/proto/google/rpc/error_details_pb")'.
Raw output
31 | export const getGoogleErrorDetailsTypeName = (detail): string | undefined =>
32 | Object.keys(errorDetails).reduce((result: string | undefined, key) => {
> 33 | if (errorDetails[key] instanceof Function && detail instanceof errorDetails[key]) {
| ^
34 | return `google.rpc.${key}`
35 | }
36 |
Check failure on line 1 in packages/grpc-error-status/src/utils.ts
github-actions / TypeCheck
Parameter 'value' implicitly has an 'any' type.
Parameter 'value' implicitly has an 'any' type.
Raw output
> 1 | export const isObject = (value) =>
| ^
2 | value && typeof value === 'object' && value.constructor === Object
3 |