Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TextDecorator

Type of Text decorator

Hierarchy

  • TextDecorator

Callable

  • __call(): any
  • Defines controller handler to return text

    example
    @Controller()
    export class TestController {
      @Get('/')
      @Text()
      index() {
        return null;
      }
    
      @Get('/test')
      test() {
        return Result([ new Text() ], null); // throw an error
      }
    }
    

    Returns any

Index

Constructors

Constructors

constructor

  • new TextDecorator(): Text

Generated using TypeDoc