mirror of https://github.com/grpc/grpc-node.git
grpc-js: linter disable no-unused-vars
Make prettier happy and move eslint-disable comment
This commit is contained in:
parent
873e6d411c
commit
a4d3f290eb
|
@ -4,6 +4,7 @@
|
|||
"rules": {
|
||||
"node/no-unpublished-import": ["error", {
|
||||
"tryExtensions": [".ts", ".js", ".json", ".node"]
|
||||
}]
|
||||
}],
|
||||
"@typescript-eslint/no-unused-vars": "off"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -50,12 +50,13 @@ export interface MethodDefinition<RequestType, ResponseType>
|
|||
extends ClientMethodDefinition<RequestType, ResponseType>,
|
||||
ServerMethodDefinition<RequestType, ResponseType> {}
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
export type ServiceDefinition<
|
||||
ImplementationType = UntypedServiceImplementation
|
||||
> = {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
readonly [index in keyof ImplementationType]: MethodDefinition<any, any>;
|
||||
};
|
||||
/* eslint-enable @typescript-eslint/no-explicit-any */
|
||||
|
||||
export interface ProtobufTypeDefinition {
|
||||
format: string;
|
||||
|
|
Loading…
Reference in New Issue