UNPKG

@scandit/web-datacapture-core

Version:

Scandit Data Capture SDK for the Web

20 lines (17 loc) 576 B
/// <reference types="emscripten" /> import { Serializable } from '../private/Serializable.js'; import { MeasureUnit } from './MeasureUnit.js'; interface NumberWithUnitJSON { value: number; unit: string; } declare class NumberWithUnit implements Serializable<NumberWithUnitJSON> { private readonly _value; private readonly _unit; constructor(value: number, unit: MeasureUnit); get value(): number; get unit(): MeasureUnit; private static fromJSON; toJSONObject(): NumberWithUnitJSON; } export { NumberWithUnit, type NumberWithUnitJSON };