Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface JsonDecorator

Type of Json decorator

Hierarchy

  • JsonDecorator

Callable

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

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

    Returns any

Index

Constructors

Constructors

constructor

  • new JsonDecorator(): Json

Generated using TypeDoc