ads-b
Version:
Library for decoding ADS-B messages emitted from Aircraft
12 lines (11 loc) • 347 B
TypeScript
/**
* MIT License
* Copyright (c) 2019 Matt Laver
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/mattlaver/ads-b/blob/master/LICENSE
*/
export interface IMessageDecoder<IMessage> {
isValid(typeCode: number): boolean;
decode(message: string): IMessage;
}