hapijs / hoek

Node utilities shared among the extended hapi universe
Other
481 stars 171 forks source link

Updates assert() type to declare condition to be true #383

Closed hueniverse closed 2 years ago

hueniverse commented 2 years ago

This updates the type definition to match hoek's assert with node's so that TS knows the condition is true if the function does not throw.