Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// TypeScript Version: 3.2.2
import u from "updeep";
u.omitted('whatever'); // $ExpectType { __omitted: boolean; }
const obj = { this: 3 };
u(true, obj); // $ExpectType true
u(null, obj); // $ExpectType null
u(undefined, obj); // $ExpectType undefined
u("a specific string", obj); // $ExpectType "a specific string"
u(true as const)(obj); // $ExpectType true
u(null)(obj); // $ExpectType null
u(undefined)(obj); // $ExpectType undefined
u("a specific string" as const)(obj); // $ExpectType "a specific string"
const aString = "a" + "b";
u(aString, obj); // $ExpectType string