mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
Fixed declaration to pass test.
This commit is contained in:
@@ -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
@@ -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>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user