You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Typescript 4.1 will have [stricter rules for type predicates](microsoft/TypeScript#39258) like
```ts
export const isObject = (val: unknown): val is Record<any, any> =>
val !== null && typeof val === 'object'
```
As a result of these rules, an expression in collectionHandlers.ts in
the reactivity package doesn't get narrowed to the type it did in TS 4.0
and below. Instead it gets an intersection type, which doesn't work with
subsequent code.
I restored the old type using a cast, since that's essentially what the
old version of Typescript was doing here.
0 commit comments