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
The isPlainObject also has some fail positive comparing with typeof x === 'object':
interfaceTest{key: string}lettest: Test|false;if(typeoftest==='object'){// test is now Test}if(isPlainObject(test)){// oops, test is now Record<string, unknown>}
Description
The above image should show the main difference of the previous one and the new one.
The new one is losing the ability to type cast to a specific interface
The text was updated successfully, but these errors were encountered: