export type TimingFunction = ( t : number ) => number ; type TimingFunctions = { [ key ] : TimingFunction ; } ; const timing = { linear : ( t ) => t , easeInQuad : ( t ) => t * t , easeOutQuad : t => t * ( 2 - t ) , easeInOutQuad : t => t < .5 ? 2 * t * t : - 1 + ( 4 - 2 * t ) * t } ; export default timing ;