-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
As of the latest versions (see below) the following code doesn't work anymore in typescript:
server.add(
ServerReflectionService,
ServerReflection(
fs.readFileSync(path.join('path', 'to', 'protoset.bin')),
// specify fully-qualified names of exposed services
[MyService.fullName],
),
);Error message:
Argument of type 'IServerReflectionService' is not assignable to parameter of type 'CompatServiceDefinition'.
Type 'IServerReflectionService' is not assignable to type 'ServiceDefinition<UntypedServiceImplementation>'.
Index signature for type 'string' is missing in type 'IServerReflectionService'.
Versions:
npm list nice-grpc
src@0.0.0 /src
├─┬ nice-grpc-server-reflection@2.0.11
│ └── nice-grpc@2.1.9 deduped
└── nice-grpc@2.1.9
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels