Closed dmmulroy closed 2 years ago
Currently, the status code keys on the HttpStatus interface are typed incorrectly as strings.
HttpStatus
For example:
interface HttpStatus { readonly '100': string; }
When it should be
interface HttpStatus { readonly 100: string; }
and you can see this to be true by looking at the real exported object: https://github.com/adaltas/node-http-status/blob/master/lib/index.js#L49
@wdavidw could I get eyes on this? 🙏
OK, I'm gonna have to trust your words on it because I am no TS expert.
Version 1.5.3 was just published
Thanks!
Currently, the status code keys on the
HttpStatus
interface are typed incorrectly as strings.For example:
When it should be
and you can see this to be true by looking at the real exported object: https://github.com/adaltas/node-http-status/blob/master/lib/index.js#L49