UNPKG

@dasch-swiss/dsp-js

Version:
19 lines 806 B
import { JsonConvert, JsonCustomConvert } from 'json2typescript'; import { StringLiteralV2 } from '../string-literal-v2'; /** * Converter for list node comments that handles both plain strings * and objects with @language/@value properties. * * The API may return comments as: * - Plain string: "Some comment" * - Object: { "@language": "en", "@value": "Some comment" } * - Array of objects: [{ "@language": "en", "@value": "..." }, ...] * * @category Internal */ export declare class ListNodeCommentsConverter implements JsonCustomConvert<StringLiteralV2[]> { static jsonConvert: JsonConvert; serialize(item: object[]): StringLiteralV2 | StringLiteralV2[]; deserialize(item: string | object | object[]): StringLiteralV2[]; } //# sourceMappingURL=list-node-comments-converter.d.ts.map