UNPKG

@signalk/streams

Version:

Utilities for handling streams of Signal K data

23 lines 706 B
import { Transform, TransformCallback } from 'stream'; import type { CreateDebug } from './types'; interface GpsdOptions { port?: number; hostname?: string; host?: string; noDataReceivedTimeout?: number; app: { setProviderStatus(id: string, msg: string): void; setProviderError(id: string, msg: string): void; }; providerId: string; createDebug?: CreateDebug; [key: string]: unknown; } export default class Gpsd extends Transform { private readonly listener; constructor(options: GpsdOptions); end(): this; _transform(chunk: Buffer, encoding: BufferEncoding, done: TransformCallback): void; } export {}; //# sourceMappingURL=gpsd.d.ts.map