Skip to content

Commit

Permalink
Merge pull request #307 from JustinBeckwith/fix-types
Browse files Browse the repository at this point in the history
fix: use capital `F` for `Function` when used as a type
  • Loading branch information
nicolasnoble authored May 3, 2018
2 parents 0631ee7 + 5233c2d commit bee673f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions packages/grpc-native-core/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ declare module "grpc" {
* @return The resulting gRPC object
*/
export function loadPackageDefinition(packageDefinition: PackageDefinition): GrpcObject;

/**
* A filename
*/
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -1443,7 +1443,7 @@ declare module "grpc" {
* @param message
*/
cancelWithStatus(status: StatusObject, message: string): void;

/**
* Pass a getPeer call down to the base gRPC call (should not be intercepted)
*/
Expand Down

0 comments on commit bee673f

Please sign in to comment.