Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information