Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function isMemberOverload(args: Overloads): args is readonly [object, PropertyKey] {
if (args.length >= 2 && isObject(args[0]) && isPropertyKey(args[1]) && (args.length === 2 || !isDefined(args[2]) || isObject(args[2]))) return true;
return false;
}
function isDecorateMemberOverload(args: DecorateOverloads): args is readonly [(PropertyDecorator | MethodDecorator)[], object, PropertyKey, PropertyDescriptor?] {
if (args.length >= 3 && Array.isArray(args[0]) && isObject(args[1]) && isPropertyKey(args[2]) && (isObject(args[3]) || !isDefined(args[3]))) return true;
return false;
}
function isParameterOverload(args: Overloads): args is readonly [object, PropertyKey, number] {
if (args.length >= 3 && isObject(args[0]) && isPropertyKey(args[1]) && typeof args[2] === "number") return true;
return false;
}