File

src/module/settings/model/GotenbergConfiguration.ts

Index

Properties

Properties

Readonly host
Type : string
Decorators :
@IsString()
Readonly port
Type : number
Decorators :
@IsNumber({}, {always: true})
@Min(0)
Readonly timeout
Type : number
Decorators :
@IsNumber({}, {always: true})
@Min(0)
import { IsNumber, IsString, Min } from 'class-validator';

export class GotenbergConfiguration {
    @IsString()
    readonly host!: string;

    @IsNumber({}, { always: true })
    @Min(0)
    readonly timeout!: number;

    @IsNumber({}, { always: true })
    @Min(0)
    readonly port!: number;
}

results matching ""

    No results matching ""