adaltas / node-http-status

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

fix(types): improve TypeScript strict typing for numeric keys in HttpStatus #49

Closed aronmal closed 6 months ago

aronmal commented 6 months ago

The TypeScript type inference for numeric keys in the HttpStatus interface was previously unspecific, causing issues in strict typing scenarios. This fix removes unnecessary declarations, ensuring more accurate and strict TypeScript typing for numeric keys. It also includes updates to unit tests to reflect and validate the improved strict typing.

Closes #48

aronmal commented 6 months ago

Unit test now has only necessary changes.