mirror of https://github.com/grpc/grpc-node.git
fix: use capital `F` for `Function` when used as a type
This commit is contained in:
parent
0631ee7828
commit
5233c2d8eb
|
|
@ -1304,11 +1304,11 @@ declare module "grpc" {
|
|||
build(): StatusObject;
|
||||
}
|
||||
|
||||
export type MetadataListener = (metadata: Metadata, next: function) => void;
|
||||
export type MetadataListener = (metadata: Metadata, next: Function) => void;
|
||||
|
||||
export type MessageListener = (message: any, next: function) => void;
|
||||
export type MessageListener = (message: any, next: Function) => void;
|
||||
|
||||
export type StatusListener = (status: StatusObject, next: function) => void;
|
||||
export type StatusListener = (status: StatusObject, next: Function) => void;
|
||||
|
||||
export interface Listener {
|
||||
onReceiveMetadata?: MetadataListener;
|
||||
|
|
@ -1346,15 +1346,15 @@ declare module "grpc" {
|
|||
build(): Listener;
|
||||
}
|
||||
|
||||
export type MetadataRequester = (metadata: Metadata, listener: Listener, next: function) => void;
|
||||
export type MetadataRequester = (metadata: Metadata, listener: Listener, next: Function) => void;
|
||||
|
||||
export type MessageRequester = (message: any, next: function) => void;
|
||||
export type MessageRequester = (message: any, next: Function) => void;
|
||||
|
||||
export type CloseRequester = (next: function) => void;
|
||||
export type CloseRequester = (next: Function) => void;
|
||||
|
||||
export type CancelRequester = (next: function) => void;
|
||||
export type CancelRequester = (next: Function) => void;
|
||||
|
||||
export type GetPeerRequester = (next: function) => string;
|
||||
export type GetPeerRequester = (next: Function) => string;
|
||||
|
||||
export interface Requester {
|
||||
start?: MetadataRequester;
|
||||
|
|
|
|||
Loading…
Reference in New Issue