Skip to content

Commit

Permalink
Fixing TS errors
Browse files Browse the repository at this point in the history
  • Loading branch information
njoy89 committed Mar 19, 2024
1 parent 77a9601 commit 990b549
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,7 @@ export interface FetchInstrumentationConfig extends InstrumentationConfig {
/**
* This class represents a fetch plugin for auto instrumentation
*/
export class FetchInstrumentation extends InstrumentationBase<
Promise<Response>
> {
export class FetchInstrumentation extends InstrumentationBase {
readonly component: string = 'fetch';
readonly version: string = VERSION;
moduleName = this.component;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export interface XMLHttpRequestInstrumentationConfig
/**
* This class represents a XMLHttpRequest plugin for auto instrumentation
*/
export class XMLHttpRequestInstrumentation extends InstrumentationBase<XMLHttpRequest> {
export class XMLHttpRequestInstrumentation extends InstrumentationBase {
readonly component: string = 'xml-http-request';
readonly version: string = VERSION;
moduleName = this.component;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export abstract class BatchLogRecordProcessorBase<T extends BufferConfig>
private readonly _exportTimeoutMillis: number;

private _finishedLogRecords: LogRecord[] = [];
private _timer: number | undefined;
private _timer: NodeJS.Timeout | undefined;
private _shutdownOnce: BindOnceFuture<void>;

constructor(
Expand Down Expand Up @@ -106,7 +106,7 @@ export abstract class BatchLogRecordProcessorBase<T extends BufferConfig>
* */
private _flushAll(): Promise<void> {
return new Promise((resolve, reject) => {
const promises = [];
const promises: Promise<void>[] = [];
const batchCount = Math.ceil(
this._finishedLogRecords.length / this._maxExportBatchSize
);
Expand Down

0 comments on commit 990b549

Please sign in to comment.