Asserts the key's value is the given value (runtime only, does not do types*).
Throws nice error if it isn't. Error message is customizable.
*This seems like a limitation of typescript for the moment. See #46184
Optional
Asserts the key's value is the given value (runtime only, does not do types*).
Throws nice error if it isn't. Error message is customizable.
*This seems like a limitation of typescript for the moment. See #46184