Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function persist(...args: any[]): any {
const [a, b, c] = args
if (a in types) {
return serializable(types[a](b))
} else if (args.length === 1) {
return (target: any) => persistObject(target, a)
} else {
return serializable.apply(null, args)
}
}