(statusCode: number)
| 11 | * @publicApi |
| 12 | */ |
| 13 | export function HttpCode(statusCode: number): MethodDecorator { |
| 14 | return ( |
| 15 | target: object, |
| 16 | key: string | symbol, |
| 17 | descriptor: TypedPropertyDescriptor<any>, |
| 18 | ) => { |
| 19 | Reflect.defineMetadata(HTTP_CODE_METADATA, statusCode, descriptor.value); |
| 20 | return descriptor; |
| 21 | }; |
| 22 | } |
no outgoing calls
no test coverage detected