UpdateTemplateVariableDto

Properties

NameType
labelstring
namestring
namedColumnsboolean
columnNamesArray<string>
columnDataTypesArray<string>
typestring
dataTypestring
dataOptionsTemplateVariableDataOptions
currentValuenumber
formatStringstring
optionalboolean

Example

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

// TODO: Update the object below with actual values
const example = {
  "label": Customer Name,
  "name": customerName,
  "namedColumns": null,
  "columnNames": ["Name","Quantity","Price"],
  "columnDataTypes": ["string","number","number"],
  "type": plain,
  "dataType": string,
  "dataOptions": null,
  "currentValue": 1,
  "formatString": INV-{000},
  "optional": null,
} satisfies UpdateTemplateVariableDto

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 UpdateTemplateVariableDto
console.log(exampleParsed)

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