@signalk/nmea0183-signalk
Version:
A node.js/javascript parser for NMEA0183 sentences. Sentences are parsed to Signal K format.
21 lines • 873 B
TypeScript
/**
* Legacy streaming compatibility wrapper.
*
* Kept for historical reasons; the original implementation relied on a
* `.stream()` method on the Parser class that has since been removed, so in
* practice this shim does not produce events today. It is preserved as an
* entry point in case a streaming wrapper is reintroduced, and to keep the
* file/export surface stable across the TypeScript migration.
*/
import { Transform, type TransformOptions } from 'stream';
import Parser from './';
export interface CompatParserOptions {
stream?: TransformOptions;
[key: string]: unknown;
}
export default class CompatParser extends Transform {
parser: Parser;
constructor(opts?: CompatParserOptions);
_transform(chunk: string | Buffer, _encoding: BufferEncoding, done: (err?: Error | null) => void): void;
}
//# sourceMappingURL=CompatParser.d.ts.map