@aircast-4g/mavlink 1.1.6 → 1.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,7 @@ interface ParsedMAVLinkMessage$1 {
5
5
  message_id: number;
6
6
  message_name: string;
7
7
  sequence: number;
8
- payload: Record<string, any>;
8
+ payload: Record<string, unknown>;
9
9
  protocol_version: 1 | 2;
10
10
  checksum: number;
11
11
  crc_ok: boolean;
@@ -5273,7 +5273,7 @@ interface ParsedMAVLinkMessage {
5273
5273
  message_id: number;
5274
5274
  message_name: string;
5275
5275
  sequence: number;
5276
- payload: Record<string, any>;
5276
+ payload: Record<string, unknown>;
5277
5277
  protocol_version: 1 | 2;
5278
5278
  checksum: number;
5279
5279
  crc_ok: boolean;
@@ -5292,6 +5292,8 @@ interface MAVLinkFrame {
5292
5292
  payload: Uint8Array;
5293
5293
  checksum: number;
5294
5294
  signature?: Uint8Array;
5295
+ crc_ok?: boolean;
5296
+ protocol_version?: 1 | 2;
5295
5297
  }
5296
5298
  interface MessageDefinition {
5297
5299
  id: number;
@@ -5313,10 +5315,7 @@ declare abstract class DialectParser {
5313
5315
  parseBytes(data: Uint8Array): ParsedMAVLinkMessage[];
5314
5316
  private tryParseFrame;
5315
5317
  resetBuffer(): void;
5316
- decode(frame: MAVLinkFrame & {
5317
- crc_ok?: boolean;
5318
- protocol_version?: 1 | 2;
5319
- }): ParsedMAVLinkMessage;
5318
+ decode(frame: MAVLinkFrame): ParsedMAVLinkMessage;
5320
5319
  private decodePayload;
5321
5320
  private getDefaultValue;
5322
5321
  private decodeField;