Type of OnNull decorator
Defines what to do on null return value
null
@Controller() export class TestController { @Get('/') @OnUndefined(404) index() { return null } @Get('/test') test() { return Result([ new OnUndefined(new NotFoundError()) ], null); } }
Generated using TypeDoc
Type of OnNull decorator