Closed ForbesLindesay closed 3 years ago
This is a workaround for https://github.com/microsoft/TypeScript/issues/36931
Add a top level assertType helper
assertType
This is needed to workaround microsoft/TypeScript#36931
Before
String.assert(x);
After
assertType(String, x);
Edit changelog
This is a workaround for https://github.com/microsoft/TypeScript/issues/36931