Skip to content

Commit

Permalink
feat(types): add LwM2MResourceValue
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Nov 5, 2023
1 parent c699876 commit 384b5a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion senml/senMLtoLwM2M.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<number, string | number | boolean | Date>
Resources: Record<number, LwM2MResourceValue>
}
type MeasurementWithObjectInfo = MeasurementType & {
bn: number
Expand Down

0 comments on commit 384b5a4

Please sign in to comment.