File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ class InsecureChannelCredentialsImpl extends ChannelCredentials {
173
173
super ( callCredentials ) ;
174
174
}
175
175
176
- compose ( callCredentials : CallCredentials ) : ChannelCredentials {
176
+ compose ( callCredentials : CallCredentials ) : never {
177
177
throw new Error ( 'Cannot compose insecure credentials' ) ;
178
178
}
179
179
Original file line number Diff line number Diff line change @@ -207,13 +207,13 @@ export type Call =
207
207
208
208
/* eslint-disable @typescript-eslint/no-explicit-any */
209
209
210
- export const loadObject = ( value : any , options : any ) => {
210
+ export const loadObject = ( value : any , options : any ) : never => {
211
211
throw new Error (
212
212
'Not available in this library. Use @grpc/proto-loader and loadPackageDefinition instead'
213
213
) ;
214
214
} ;
215
215
216
- export const load = ( filename : any , format : any , options : any ) => {
216
+ export const load = ( filename : any , format : any , options : any ) : never => {
217
217
throw new Error (
218
218
'Not available in this library. Use @grpc/proto-loader and loadPackageDefinition instead'
219
219
) ;
Original file line number Diff line number Diff line change @@ -312,7 +312,7 @@ export class ResolvingLoadBalancer implements LoadBalancer {
312
312
updateAddressList (
313
313
addressList : SubchannelAddress [ ] ,
314
314
lbConfig : LoadBalancingConfig | null
315
- ) {
315
+ ) : never {
316
316
throw new Error ( 'updateAddressList not supported on ResolvingLoadBalancer' ) ;
317
317
}
318
318
Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ export class Server {
231
231
}
232
232
233
233
234
- addProtoService ( ) : void {
234
+ addProtoService ( ) : never {
235
235
throw new Error ( 'Not implemented. Use addService() instead' ) ;
236
236
}
237
237
@@ -311,7 +311,7 @@ export class Server {
311
311
} ) ;
312
312
}
313
313
314
- bind ( port : string , creds : ServerCredentials ) : void {
314
+ bind ( port : string , creds : ServerCredentials ) : never {
315
315
throw new Error ( 'Not implemented. Use bindAsync() instead' ) ;
316
316
}
317
317
@@ -696,7 +696,7 @@ export class Server {
696
696
}
697
697
}
698
698
699
- addHttp2Port ( ) : void {
699
+ addHttp2Port ( ) : never {
700
700
throw new Error ( 'Not yet implemented' ) ;
701
701
}
702
702
You can’t perform that action at this time.
0 commit comments