Created
March 26, 2018 03:16
-
-
Save HyunSeob/db860bca1c5f1510ee8fbda40d53f72e to your computer and use it in GitHub Desktop.
Type definition for velocity-react
This file contains 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
// Type definitions for velocity-react v1.3.3 | |
// Project: https://github.com/google-fabric/velocity-react | |
// Definitions by: HyunSeob <https://github.com/hyunseob> | |
/// <reference types="velocity-animate" /> | |
declare module 'velocity-react' { | |
import * as React from 'react' | |
export interface VelocityComponentProps extends jquery.velocity.Options { | |
animation: jquery.velocity.Properties | string | |
runOnMount?: boolean | |
targetQuerySelector?: string | |
interruptBehavior?: string | |
enterShowStyle?: jquery.velocity.Options | |
} | |
export class VelocityComponent extends React.Component<VelocityComponentProps> { | |
runAnimation(config: { stop?: boolean; finish?: boolean }): void | |
} | |
export interface VelocityAnimationObject extends jquery.velocity.Options { | |
animation: jquery.velocity.Properties | string | |
styles?: jquery.velocity.Properties | |
opts?: jquery.velocity.Options | |
} | |
export interface VelocityTransitionGroupProps { | |
enter?: VelocityAnimationObject | string | |
leave?: VelocityAnimationObject | string | |
component?: string | |
runOnMount?: boolean | |
enterHideStyle?: jquery.velocity.Options | |
enterShowStyle?: jquery.velocity.Options | |
} | |
export class VelocityTransitionGroup extends React.Component<VelocityTransitionGroupProps> {} | |
export function registerEffect(animation: jquery.velocity.RegisteredEffectOptions): string | |
export function registerEffect( | |
suffix: string, | |
animation: jquery.velocity.RegisteredEffectOptions, | |
): string | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment