Skip to content

Commit

Permalink
content object ==> any
Browse files Browse the repository at this point in the history
  • Loading branch information
felipezarco committed Jun 22, 2020
1 parent 7eaff41 commit c7a8079
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const responser = (request: Request, response: Response, next: NextFunction) =>
for(const [status, code] of Object.entries(HttpStatus)) {
if(status == 'getStatusText' || status == 'getStatusCode') continue
const success = ['1','2'].includes(String(code).charAt(0));
(response as any)['send_'+camelCase(status)] = function(message: string, content?: object) {
(response as any)['send_'+camelCase(status)] = function(message: string, content?: any) {
const hasContent = content && !isObjectEmpty(content)
this.status(code).json({
status,
Expand Down

0 comments on commit c7a8079

Please sign in to comment.