Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
static create(from: T, to: T | null = from): AnimatedValue {
if (is.str(from) && is.str(to)) {
return new AnimatedString(from, to) as any
}
throw TypeError('Expected "from" and "to" to be strings')
}