TemplateVariable
Properties
| Name | Type |
|---|---|
id | number |
createdAt | Date |
updatedAt | Date |
label | string |
name | string |
namedColumns | boolean |
columnNames | Array<string> |
columnDataTypes | Array<string> |
type | string |
dataType | string |
dataOptions | TemplateVariableDataOptions |
currentValue | number |
formatString | string |
optional | boolean |
template | PdfTemplate |
organization | Organization |
templates | object |
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]