Created
June 30, 2020 22:55
-
-
Save risingBirdSong/a1182c49b971adb017a01ac6c9af5d96 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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