bacnet-device
Version:
A TypeScript library for implementing BACnet IP devices in Node.js.
43 lines • 2.08 kB
TypeScript
import type { BACNetAppData, ApplicationTag, ApplicationTagValueTypeMap } from '@innovation-system/node-bacnet';
/**
* Representation of a BACnet value.
*
* This interface extends the BACNetAppData interface from the underlying BACnet library
* and provides a type-safe way to represent BACnet values with their associated tags.
*
* @template Tag - The ApplicationTag that categorizes this value
* @template Type - The JavaScript type associated with the Tag, derived from ApplicationTagValueType
*/
export interface BDValue<Tag extends ApplicationTag = ApplicationTag, Type extends BDApplicationTagValueType[Tag] = BDApplicationTagValueType[Tag]> extends BACNetAppData<Tag, Type> {
}
/**
* Map between BACnet Application Tags and native JavaScript types.
*
* This interface defines the mapping between each BACnet ApplicationTag
* and its corresponding JavaScript/TypeScript type. This mapping is used
* throughout the library to ensure type safety when working with BACnet values.
*
* Entries mapping to the `never` type are not yet supported by this implementation.
*/
export interface BDApplicationTagValueType extends ApplicationTagValueTypeMap {
[]: never;
[]: never;
[]: never;
[]: never;
[]: never;
[]: never;
[]: never;
[]: never;
[]: never;
[]: never;
[]: never;
[]: never;
[]: never;
[]: never;
[]: never;
[]: never;
[]: never;
[]: never;
[]: never;
}
//# sourceMappingURL=value.d.ts.map