Skip to content

Instantly share code, notes, and snippets.

@risingBirdSong
Created June 30, 2020 22:55
Show Gist options
  • Save risingBirdSong/a1182c49b971adb017a01ac6c9af5d96 to your computer and use it in GitHub Desktop.
Save risingBirdSong/a1182c49b971adb017a01ac6c9af5d96 to your computer and use it in GitHub Desktop.
//pick from nodeConfig those relating to animation
type animToPick = Pick<NodeConfig, "x" | "y" | "width" | "height" | "opacity" | "scaleX" | "scaleY" | "rotation" | "rotationDeg" | "offsetX" | "offsetY">
interface nodeAndFinish {
// the values that failed travis tests
node: Node;
onfinish: Function;
}
interface animToSpecific {
//and other possible methods / properties go here
duration?: number;
}
type animTo = animToPick & nodeAndFinish & animToSpecific;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment