Skip to content

Commit

Permalink
Native: Remove unused ChannelCredential type definitions
Browse files Browse the repository at this point in the history
Removes:
- getCallCredentials
- getSecureContext

These functions no longer exist, so their presence in the type 
definitions is invalid.
  • Loading branch information
evaogbe committed May 3, 2019
1 parent f7f098b commit a11bdbb
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions packages/grpc-native-core/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -963,18 +963,6 @@ declare module "grpc" {
* instance.
*/
compose(callCredentials: CallCredentials): ChannelCredentials;

/**
* Gets the set of per-call credentials associated with this instance.
*/
getCallCredentials(): CallCredentials;

/**
* Gets a SecureContext object generated from input parameters if this
* instance was created with createSsl, or null if this instance was created
* with createInsecure.
*/
getSecureContext(): SecureContext | null;
}

/**
Expand Down Expand Up @@ -1545,7 +1533,7 @@ declare module "grpc" {
TRANSIENT_FAILURE = 3,
SHUTDOWN = 4
}

export class Channel {
/**
* This constructor API is almost identical to the Client constructor,
Expand Down Expand Up @@ -1583,8 +1571,8 @@ declare module "grpc" {
watchConnectivityState(currentState: connectivityState, deadline: Date|number, callback: (error?: Error) => void): void;
/**
* Create a call object. Call is an opaque type that is used by the Client
* and Server classes. This function is called by the gRPC library when
* starting a request. Implementers should return an instance of Call that
* and Server classes. This function is called by the gRPC library when
* starting a request. Implementers should return an instance of Call that
* is returned from calling createCall on an instance of the provided
* Channel class.
* @param method The full method string to request.
Expand All @@ -1595,5 +1583,5 @@ declare module "grpc" {
* that indicates what information to propagate from parentCall.
*/
createCall(method: string, deadline: Date|number, host: string|null, parentCall: Call|null, propagateFlags: number|null): Call;
}
}
}
}

0 comments on commit a11bdbb

Please sign in to comment.