The ConnectionHeaders interface does not work with strict: true or strictNullChecks: true.
Though this point needs further investigation on TypeScript itself, this should help to have type suggestions on ConnectionHeaders in strict mode.
If this isn't consistent enough the only solution (afaik) is to remove the optional keys and the undefined key definition. In this case you will lose the type suggestion:
The ConnectionHeaders interface does not work with
strict: true
orstrictNullChecks: true
.Though this point needs further investigation on TypeScript itself, this should help to have type suggestions on ConnectionHeaders in strict mode.
If this isn't consistent enough the only solution (afaik) is to remove the optional keys and the undefined key definition. In this case you will lose the type suggestion:
Related to: https://github.com/Microsoft/TypeScript/issues/17277
If you agree to these changes, dont forget to bump the version 🥇