Tracking issue.
After originally indicating it was a design limitation, the TypeScript team revisited allowing the ability to model type narrowing via assert(). The assert() pattern is heavily used within Deno and once microsoft/TypeScript#32695 is landed is part of a TypeScript release we will be able to make all of our code more sound.
Tracking issue.
After originally indicating it was a design limitation, the TypeScript team revisited allowing the ability to model type narrowing via
assert(). Theassert()pattern is heavily used within Deno and once microsoft/TypeScript#32695 is landed is part of a TypeScript release we will be able to make all of our code more sound.