Generic Data Transfer Object, used widely in Takaro to pass data back and forth between components Allows validation of properties when instantiated and JSON (de)serialization

Type Parameters

  • T

Hierarchy (View Summary)

Constructors

Properties

commands: ICommand[] = []
configSchema: string
cronJobs: ICronJob[] = []
description: string
functions: IFunction[] = []
hooks: IHook[] = []
name: string
permissions: IPermission[] = []
uiSchema: string

Methods

  • Parameters

    • type: "commands" | "hooks" | "cronJobs" | "functions"
    • name: string

    Returns string

  • Returns Record<string, any>

  • Validates the DTO instance

    Parameters

    • OptionalextraOpts: ValidatorOptions

    Returns Promise<void>

    if validation fails