We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bff90d2 commit f5a9636Copy full SHA for f5a9636
index.d.ts
@@ -17,7 +17,7 @@ export interface CreateClientOptions {
17
retryOptions?: {
18
interval?: number
19
};
20
- Promise?: Promise<any>;
+ Promise?: PromiseConstructor;
21
}
22
23
export interface RequestHandle {
spec/createClient.spec.ts
@@ -0,0 +1,11 @@
1
+import test from 'ava';
2
+
3
+import gmaps = require('@google/maps');
4
5
+test('with promise', t => {
6
+ gmaps.createClient({
7
+ key: '',
8
+ Promise
9
+ });
10
+ t.pass();
11
+});
0 commit comments