Added new apiEndpoint options key for Google PubSub definition type

This commit is contained in:
Luna
2018-06-01 12:53:29 -04:00
parent 9fb3214e64
commit ac965730ca
+6 -2
View File
@@ -1,6 +1,6 @@
// Type definitions for @google-cloud/pubsub 0.14
// Type definitions for @google-cloud/pubsub 0.18
// Project: https://github.com/GoogleCloudPlatform/google-cloud-node/tree/master/packages/pubsub
// Definitions by: Paul Huynh <https://github.com/pheromonez>
// Definitions by: Paul Huynh <https://github.com/pheromonez>, LunaPg <https://github.com/LunaPg>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
@@ -13,9 +13,13 @@ declare namespace PubSub {
// https://googlecloudplatform.github.io/google-cloud-node/#/docs/pubsub/0.14.1/pubsub/v1
function v1(config?: GCloudConfiguration): any;
/**
* @version: Google PubSub 0.18.0
*/
interface GCloudConfiguration {
projectId?: string;
keyFilename?: string;
apiEndpoint?: string;
email?: string;
credentials?: {
client_email?: string;