Skip to content

API: CDIFPrimitiveValue

Madeline Kahn edited this page Jul 24, 2025 · 4 revisions

API"@mkacct/cdif"CDIFPrimitiveValue

class CDIFPrimitiveValue

A CDIFPrimitiveValue object represents an encoded cDIF primitive value. When used within a structure to be serialized, its cDIF text will be used as-is, and any preprocessors will be skipped. It is comparable to JavaScript's "raw JSON" objects.

Instance

cdifVersion

public readonly cdifVersion: number

The major version of cDIF used by the CDIF instance that created this CDIFPrimitiveValue. (A CDIFPrimitiveValue can only be serialized by the same CDIF instance that created it.)

cdifText

public readonly cdifText: string

The cDIF text representation of the primitive value.

Clone this wiki locally