From 384b5a41861d3fbc29d411f18bf88ce65c84cb1c Mon Sep 17 00:00:00 2001 From: Markus Tacker Date: Sun, 5 Nov 2023 16:02:45 +0100 Subject: [PATCH] feat(types): add LwM2MResourceValue --- senml/senMLtoLwM2M.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/senml/senMLtoLwM2M.ts b/senml/senMLtoLwM2M.ts index 579c97c..08bd2b4 100644 --- a/senml/senMLtoLwM2M.ts +++ b/senml/senMLtoLwM2M.ts @@ -2,13 +2,14 @@ import type { MeasurementType, SenMLType } from './SenMLSchema' import { timestampResources } from '../lwm2m/timestampResources.js' import { stripEmptyValues } from './stripEmptyValues.js' +export type LwM2MResourceValue = string | number | boolean | Date export type LwM2MObject = { ObjectID: number /** * @default '1.0' */ ObjectVersion?: string - Resources: Record + Resources: Record } type MeasurementWithObjectInfo = MeasurementType & { bn: number