@@ -3,7 +3,7 @@ import {map, reduce} from 'lodash';
33import  { Metadata }  from  './metadata' ; 
44
55export  type  CallMetadataGenerator  = 
6-     ( options : Object ,  cb : ( err : Error | null ,  metadata ?: Metadata )  =>  void )  => 
6+     ( options : { } ,  cb : ( err : Error | null ,  metadata ?: Metadata )  =>  void )  => 
77        void ; 
88
99/** 
@@ -15,7 +15,7 @@ export interface CallCredentials {
1515   * Asynchronously generates a new Metadata object. 
1616   * @param  options Options used in generating the Metadata object. 
1717   */ 
18-   generateMetadata ( options : Object ) : Promise < Metadata > ; 
18+   generateMetadata ( options : { } ) : Promise < Metadata > ; 
1919  /** 
2020   * Creates a new CallCredentials object from properties of both this and 
2121   * another CallCredentials object. This object's metadata generator will be 
@@ -28,7 +28,7 @@ export interface CallCredentials {
2828class  ComposedCallCredentials  implements  CallCredentials  { 
2929  constructor ( private  creds : CallCredentials [ ] )  { } 
3030
31-   async  generateMetadata ( options : Object ) : Promise < Metadata >  { 
31+   async  generateMetadata ( options : { } ) : Promise < Metadata >  { 
3232    let  base : Metadata  =  new  Metadata ( ) ; 
3333    let  generated : Metadata [ ]  =  await  Promise . all ( 
3434        map ( this . creds ,  ( cred )  =>  cred . generateMetadata ( options ) ) ) ; 
@@ -46,7 +46,7 @@ class ComposedCallCredentials implements CallCredentials {
4646class  SingleCallCredentials  implements  CallCredentials  { 
4747  constructor ( private  metadataGenerator : CallMetadataGenerator )  { } 
4848
49-   async  generateMetadata ( options : Object ) : Promise < Metadata >  { 
49+   async  generateMetadata ( options : { } ) : Promise < Metadata >  { 
5050    return  new  Promise < Metadata > ( ( resolve ,  reject )  =>  { 
5151      this . metadataGenerator ( options ,  ( err ,  metadata )  =>  { 
5252        if  ( metadata  !==  undefined )  { 
@@ -64,7 +64,7 @@ class SingleCallCredentials implements CallCredentials {
6464} 
6565
6666class  EmptyCallCredentials  implements  CallCredentials  { 
67-   async  generateMetadata ( options : Object ) : Promise < Metadata >  { 
67+   async  generateMetadata ( options : { } ) : Promise < Metadata >  { 
6868    return  new  Metadata ( ) ; 
6969  } 
7070
0 commit comments