Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface RawDecorator

Type of Raw decorator

Hierarchy

  • RawDecorator

Callable

  • __call(): any
  • Defines controller handler to return raw data

    example
    @Controller()
    export class TestController {
      @Get('/')
      @Raw()
      index() {
        return 'string';
      }
    
      @Get('/test')
      test() {
        return Result([ new Raw() ], new Buffer('buffer'));
      }
    }
    

    Returns any

Index

Constructors

Constructors

constructor

  • new RawDecorator(): Raw

Generated using TypeDoc