Skip to content

Commit

Permalink
Fix return type in observer getters
Browse files Browse the repository at this point in the history
  • Loading branch information
ibc committed Jul 25, 2024
1 parent 273c9c9 commit ea8e68f
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Consumer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export class Consumer<
this._appData = appData;
}

get observer(): EnhancedEventEmitter {
get observer(): ConsumerObserver {
return this._observer;
}

Expand Down
2 changes: 1 addition & 1 deletion src/DataConsumer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export class DataConsumer<
this._appData = appData;
}

get observer(): EnhancedEventEmitter {
get observer(): DataConsumerObserver {
return this._observer;
}

Expand Down
2 changes: 1 addition & 1 deletion src/DataProducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export class DataProducer<
this._appData = appData;
}

get observer(): EnhancedEventEmitter {
get observer(): DataProducerObserver {
return this._observer;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Device.ts
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ export class Device {
return this._sctpCapabilities!;
}

get observer(): EnhancedEventEmitter {
get observer(): DeviceObserver {
return this._observer;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Producer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ export class Producer<
this._appData = appData;
}

get observer(): EnhancedEventEmitter {
get observer(): ProducerObserver {
return this._observer;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Transport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ export class Transport<
this._appData = appData;
}

get observer(): EnhancedEventEmitter {
get observer(): TransportObserver {
return this._observer;
}

Expand Down

0 comments on commit ea8e68f

Please sign in to comment.