Fixed declaration to pass test.

This commit is contained in:
Brian Love
2017-05-10 15:26:01 -06:00
parent e235463cdb
commit c3d08f7d2e
2 changed files with 4 additions and 2 deletions
@@ -38,7 +38,7 @@ export class TestStorage {
};
// import Storage class
static gcs: Storage;
static gcs: Storage = new Storage();
// the bucket
private buckets: Bucket[] = [];
+3 -1
View File
@@ -313,7 +313,7 @@ declare module "@google-cloud/storage/storage" {
keyFilename?: string;
maxRetries?: number;
projectId?: string;
promise?: Function;
promise?: PromiseLibrary<any>;
}
/**
@@ -366,4 +366,6 @@ declare module "@google-cloud/storage/storage" {
getBuckets(query?: BucketQuery): Promise<[Bucket[]]>;
getBucketsStream(query?: BucketQuery): Promise<[ReadStream]>;
}
type PromiseLibrary<T> = () => PromiseLike<T>;
}