File

src/issuer/display/dto/display.dto.ts

Index

Properties

Properties

Optional alt_text
Type : string
Decorators :
@IsString()
@IsOptional()
uri
Type : string
Decorators :
@IsString()
import { Type } from "class-transformer";
import { IsOptional, IsString, ValidateNested } from "class-validator";

class DisplayLogo {
    @IsString()
    uri!: string;

    @IsString()
    @IsOptional()
    alt_text?: string;
}
export class DisplayInfo {
    @IsString()
    @IsOptional()
    name?: string;
    @IsString()
    @IsOptional()
    locale?: string;

    @ValidateNested()
    @IsOptional()
    @Type(() => DisplayLogo)
    logo?: DisplayLogo;
}

results matching ""

    No results matching ""