@@ -3,7 +3,7 @@ import {map, reduce} from 'lodash';
3
3
import { Metadata } from './metadata' ;
4
4
5
5
export type CallMetadataGenerator =
6
- ( options : Object , cb : ( err : Error | null , metadata ?: Metadata ) => void ) =>
6
+ ( options : { } , cb : ( err : Error | null , metadata ?: Metadata ) => void ) =>
7
7
void ;
8
8
9
9
/**
@@ -15,7 +15,7 @@ export interface CallCredentials {
15
15
* Asynchronously generates a new Metadata object.
16
16
* @param options Options used in generating the Metadata object.
17
17
*/
18
- generateMetadata ( options : Object ) : Promise < Metadata > ;
18
+ generateMetadata ( options : { } ) : Promise < Metadata > ;
19
19
/**
20
20
* Creates a new CallCredentials object from properties of both this and
21
21
* another CallCredentials object. This object's metadata generator will be
@@ -28,7 +28,7 @@ export interface CallCredentials {
28
28
class ComposedCallCredentials implements CallCredentials {
29
29
constructor ( private creds : CallCredentials [ ] ) { }
30
30
31
- async generateMetadata ( options : Object ) : Promise < Metadata > {
31
+ async generateMetadata ( options : { } ) : Promise < Metadata > {
32
32
let base : Metadata = new Metadata ( ) ;
33
33
let generated : Metadata [ ] = await Promise . all (
34
34
map ( this . creds , ( cred ) => cred . generateMetadata ( options ) ) ) ;
@@ -46,7 +46,7 @@ class ComposedCallCredentials implements CallCredentials {
46
46
class SingleCallCredentials implements CallCredentials {
47
47
constructor ( private metadataGenerator : CallMetadataGenerator ) { }
48
48
49
- async generateMetadata ( options : Object ) : Promise < Metadata > {
49
+ async generateMetadata ( options : { } ) : Promise < Metadata > {
50
50
return new Promise < Metadata > ( ( resolve , reject ) => {
51
51
this . metadataGenerator ( options , ( err , metadata ) => {
52
52
if ( metadata !== undefined ) {
@@ -64,7 +64,7 @@ class SingleCallCredentials implements CallCredentials {
64
64
}
65
65
66
66
class EmptyCallCredentials implements CallCredentials {
67
- async generateMetadata ( options : Object ) : Promise < Metadata > {
67
+ async generateMetadata ( options : { } ) : Promise < Metadata > {
68
68
return new Metadata ( ) ;
69
69
}
70
70
0 commit comments