@bisrvn/utils
Advanced tools
Comparing version 1.0.9 to 1.0.10
@@ -19,23 +19,2 @@ /** | ||
type TimeUnit = 'seconds' | 'milliseconds'; | ||
type AltitudeReference = 'AMSL' | 'AGL'; | ||
type AltitudeUnit = 'meter'; | ||
type HeadingUnit = 'degrees'; | ||
type SpeedUnit = 'm/s'; | ||
/** | ||
* Known track types | ||
**/ | ||
declare enum ETrack { | ||
AIRPLATE = "AirPlate", | ||
/** | ||
* Simulated tracks | ||
*/ | ||
BISRVN = "bisrvn", | ||
MYDEFENCE = "mydefence" | ||
} | ||
interface Track<TData = unknown> { | ||
type: ETrack; | ||
data: TData; | ||
} | ||
declare enum AirPlateType { | ||
@@ -172,2 +151,34 @@ AP_DRONE = "AirPlate", | ||
type TimeUnit = 'seconds' | 'milliseconds'; | ||
type AltitudeReference = 'AMSL' | 'AGL'; | ||
type AltitudeUnit = 'meter'; | ||
type HeadingUnit = 'degrees'; | ||
type SpeedUnit = 'm/s'; | ||
/** | ||
* Known track types | ||
**/ | ||
declare enum ETrack { | ||
AIRPLATE = "AirPlate", | ||
/** | ||
* Simulated tracks | ||
*/ | ||
BISRVN = "bisrvn", | ||
MYDEFENCE = "mydefence" | ||
} | ||
interface Track<TData = unknown> { | ||
type: ETrack; | ||
data: TData; | ||
} | ||
type TrackMap = { | ||
[ETrack.AIRPLATE]: AirPlateUndetermined; | ||
[ETrack.MYDEFENCE]: unknown; | ||
[ETrack.BISRVN]: unknown; | ||
}; | ||
type TrackUndetermined = { | ||
[K in keyof TrackMap]: { | ||
type: K; | ||
data: TrackMap[K]; | ||
}; | ||
}[keyof TrackMap]; | ||
type WithId<TExtend = unknown> = { | ||
@@ -177,2 +188,2 @@ id: string; | ||
export { type AirPlateDetermined, type AirPlateDrone, type AirPlatePlane, type AirPlateScanner, type AirPlateTrack, AirPlateType, type AirPlateUndetermined, type AltitudeReference, type AltitudeUnit, ETrack, type EmitterMessage, type HeadingUnit, type SpeedUnit, type TimeUnit, type Track, type WithId, from_buffer, to_buffer }; | ||
export { type AirPlateDetermined, type AirPlateDrone, type AirPlatePlane, type AirPlateScanner, type AirPlateTrack, AirPlateType, type AirPlateUndetermined, type AltitudeReference, type AltitudeUnit, ETrack, type EmitterMessage, type HeadingUnit, type SpeedUnit, type TimeUnit, type Track, type TrackMap, type TrackUndetermined, type WithId, from_buffer, to_buffer }; |
{ | ||
"name": "@bisrvn/utils", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"description": "Interfaces and util functions", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25611
306