@@ -4,7 +4,7 @@ import { Protocol } from ".";
44import { AxiosResponse } from "axios" ;
55import { Agent } from "http" ;
66
7- export interface Options {
7+ export interface TransportOptions {
88 /**
99 * The endpoint that will receieve the event.
1010 * @example http://cncf.example.com/receiver
@@ -21,7 +21,7 @@ export interface Options {
2121}
2222
2323interface EmitterFunction {
24- ( event : CloudEvent , options : Options ) : Promise < AxiosResponse > ;
24+ ( event : CloudEvent , options : TransportOptions ) : Promise < AxiosResponse > ;
2525}
2626
2727/**
@@ -36,7 +36,7 @@ export class Emitter {
3636 protocol : Protocol ;
3737 emitter : EmitterFunction ;
3838
39- constructor ( options : Options = { protocol : Protocol . HTTPBinary } ) {
39+ constructor ( options : TransportOptions = { protocol : Protocol . HTTPBinary } ) {
4040 this . protocol = options . protocol as Protocol ;
4141 this . url = options . url ;
4242 this . emitter = emitBinary ;
@@ -58,7 +58,7 @@ export class Emitter {
5858 * be overridden by providing a URL here.
5959 * @returns {Promise } Promise with an eventual response from the receiver
6060 */
61- send ( event : CloudEvent , options ?: Options ) : Promise < AxiosResponse > {
61+ send ( event : CloudEvent , options ?: TransportOptions ) : Promise < AxiosResponse > {
6262 options = options || { } ;
6363 options . url = options . url || this . url ;
6464 if ( options . protocol != this . protocol ) {
0 commit comments