velocity-animate: Support HTMLCollection in addition to NodeListOf<HTMLElement> (#27794)

This commit is contained in:
Andy
2018-08-06 17:36:51 -07:00
committed by GitHub
parent 2f341e0c79
commit a2bd223042

View File

@@ -87,8 +87,8 @@ declare namespace jquery.velocity {
interface VelocityStatic {
Sequences: any;
mock: any;
animate(options: {elements: NodeListOf<HTMLElement>; properties: Properties; options: Options}): any;
animate(elements: HTMLElement|NodeListOf<HTMLElement>, properties: Properties, options: Options): any;
animate(options: {elements: HTMLCollection | NodeListOf<HTMLElement>; properties: Properties; options: Options}): any;
animate(elements: HTMLElement | HTMLCollection | NodeListOf<HTMLElement>, properties: Properties, options: Options): any;
RegisterEffect(name: string, options: RegisterEffectOptions): VelocityStatic;
RunSequence(sequence: SequenceCall[]): VelocityStatic;