UNPKG

423 BTypeScriptView Raw
1/**
2 * Used to set specific HTTP status code when result returned by a controller action is equal to null.
3 * Must be applied on a controller action.
4 */
5export declare function OnNull(code: number): Function;
6/**
7 * Used to set specific HTTP status code when result returned by a controller action is equal to null.
8 * Must be applied on a controller action.
9 */
10export declare function OnNull(error: Function): Function;