TemplateVariable

Properties

NameType
idnumber
createdAtDate
updatedAtDate
labelstring
namestring
namedColumnsboolean
columnNamesArray<string>
columnDataTypesArray<string>
typestring
dataTypestring
dataOptionsTemplateVariableDataOptions
currentValuenumber
formatStringstring
optionalboolean
templatePdfTemplate
organizationOrganization
templatesobject

Example

import type { TemplateVariable } from '@pdf-generator/client'

// TODO: Update the object below with actual values
const example = {
  "id": null,
  "createdAt": null,
  "updatedAt": null,
  "label": null,
  "name": null,
  "namedColumns": null,
  "columnNames": null,
  "columnDataTypes": null,
  "type": null,
  "dataType": null,
  "dataOptions": null,
  "currentValue": null,
  "formatString": null,
  "optional": null,
  "template": null,
  "organization": null,
  "templates": null,
} satisfies TemplateVariable

console.log(example)

// Convert the instance to a JSON string
const exampleJSON: string = JSON.stringify(example)
console.log(exampleJSON)

// Parse the JSON string back to an object
const exampleParsed = JSON.parse(exampleJSON) as TemplateVariable
console.log(exampleParsed)

[Back to top] [Back to API list] [Back to Model list] [Back to README]