Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function transferAnimationData(
state: TransferState,
animation: AnimationFilename,
animationData: AnimationData
): void {
animation = transformAnimationFilenameToKey(animation);
const key = makeStateKey(animation);
state.set(key, JSON.parse(animationData));
}