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 48569c1
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 @@ -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 Expand Up @@ -142,7 +142,7 @@ export abstract class BatchLogRecordProcessorBase<T extends BufferConfig>
if (this._timer !== undefined) {
return;
}
this._timer = setTimeout(() => {
this._timer = window.setTimeout(() => {
this._flushOneBatch()
.then(() => {
if (this._finishedLogRecords.length > 0) {
Expand Down

0 comments on commit 48569c1

Please sign in to comment.