adaltas / node-http-status

Utility to interact with HTTP status code in Node.js
Other
441 stars 55 forks source link

Typescript dynamic show status name #30

Closed phunguyen19 closed 5 years ago

phunguyen19 commented 5 years ago

I tried to use dynamic loading status['500_CODE'] but got this error.

wdavidw commented 5 years ago

Hi, I have just entirely re-written the TypeScript definition file. I am no expert in TypeScript so I welcome any feedback in this manner. A new version is published with an associated test file. Feel free to re-open if it doesn't solve your issue.

phunguyen19 commented 5 years ago

@wdavidw Thanks for your support. The issue is solved.