@signalk/streams
Version:
Utilities for handling streams of Signal K data
27 lines • 766 B
TypeScript
import { Transform, TransformCallback } from 'stream';
import type { CreateDebug } from './types';
interface KeysFilterOptions {
excludeMatchingPaths: string[];
createDebug?: CreateDebug;
}
interface DeltaUpdate {
values?: Array<{
path: string;
[key: string]: unknown;
}>;
$source?: string;
source?: unknown;
timestamp?: string;
}
interface Delta {
updates?: DeltaUpdate[];
[key: string]: unknown;
}
export default class KeysFilter extends Transform {
private readonly debug;
private readonly exclude;
constructor(options: KeysFilterOptions);
_transform(chunk: Buffer | string | Delta, encoding: BufferEncoding, done: TransformCallback): void;
}
export {};
//# sourceMappingURL=keys-filter.d.ts.map