Skip to content

Commit

Permalink
Try publis notam decoder 6 (#34)
Browse files Browse the repository at this point in the history
* fix: add correct type

* feat: export types
  • Loading branch information
georgeenciu authored Oct 15, 2023
1 parent 1621ffd commit 041d341
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 12 deletions.
9 changes: 8 additions & 1 deletion packages/notam-decoder/src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
export * from './lib/notam-decoder';
export { decode } from './parse';
export type {
NotamType,
DecodedNotam,
ScopeType,
RulesTypes,
AttentionType,
} from './types';
7 changes: 0 additions & 7 deletions packages/notam-decoder/src/lib/notam-decoder.spec.ts

This file was deleted.

3 changes: 0 additions & 3 deletions packages/notam-decoder/src/lib/notam-decoder.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/notam-decoder/src/reducers/notam-line.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const reducer = (notam: DecodedNotam, line: string): DecodedNotam => {
}

let type: NotamType;
let affected;
let affected: string | undefined;

switch (matches[1]) {
case 'NOTAMN':
Expand Down
1 change: 1 addition & 0 deletions packages/notam-decoder/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export type ScopeType =
| 'Checklist'
| 'Airport/Enroute warning'
| 'Airport/Navigation warning';

export type NotamType = 'new' | 'cancel' | 'replace';

export type DecodedNotam = {
Expand Down

0 comments on commit 041d341

Please sign in to comment.