UNPKG

sentry-wechat-miniprogram

Version:
22 lines (21 loc) 631 B
import { Event, Response, Transport, TransportOptions } from '@sentry/types'; import { PromiseBuffer } from '@sentry/utils'; /** Base Transport class implementation */ export declare abstract class BaseTransport implements Transport { options: TransportOptions; /** * @inheritDoc */ url: string; /** A simple buffer holding all requests. */ protected readonly _buffer: PromiseBuffer<Response>; constructor(options: TransportOptions); /** * @inheritDoc */ sendEvent(_: Event): Promise<Response>; /** * @inheritDoc */ close(timeout?: number): Promise<boolean>; }