mirror of
https://github.com/dotFionn/iassure-wx.git
synced 2026-03-21 06:22:56 -05:00
move types to shared, add first stuff
This commit is contained in:
14
shared/src/types/config.types.ts
Normal file
14
shared/src/types/config.types.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
export interface WxConfig {
|
||||
regions: WxRegion[];
|
||||
}
|
||||
|
||||
export interface WxRegion {
|
||||
identifier: string;
|
||||
fixes: WxFix[];
|
||||
}
|
||||
|
||||
export interface WxFix {
|
||||
name: string;
|
||||
lat: number;
|
||||
lon: number;
|
||||
}
|
||||
27
shared/src/types/wx.types.ts
Normal file
27
shared/src/types/wx.types.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
export interface WxLevelData {
|
||||
'T(K)': string;
|
||||
windspeed: string;
|
||||
windhdg: string;
|
||||
}
|
||||
|
||||
export interface WxFixData {
|
||||
coords: {
|
||||
lat: string;
|
||||
long: string;
|
||||
};
|
||||
|
||||
levels: {
|
||||
[key: string]: WxLevelData;
|
||||
}
|
||||
}
|
||||
|
||||
export interface WxData {
|
||||
info: {
|
||||
date: string;
|
||||
datestring: string;
|
||||
legal: string;
|
||||
};
|
||||
data: {
|
||||
[key: string]: WxFixData;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user