From 2bab2df8287f7eb91900d63f69485f6a16eb3896 Mon Sep 17 00:00:00 2001 From: Chabardes Date: Thu, 16 Jul 2015 17:12:01 +0200 Subject: [PATCH] Update velocity-animate.d.ts add hook functions (http://julian.com/research/velocity/#hook) --- velocity-animate/velocity-animate.d.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/velocity-animate/velocity-animate.d.ts b/velocity-animate/velocity-animate.d.ts index 00c421896..6946da972 100644 --- a/velocity-animate/velocity-animate.d.ts +++ b/velocity-animate/velocity-animate.d.ts @@ -34,6 +34,16 @@ declare module jquery.velocity { animate(options: {elements: NodeListOf; properties: Object; options: VelocityOptions}): void; animate(elements: NodeListOf, properties: Object, options: VelocityOptions): void; animate(element: HTMLElement, properties: Object, options: VelocityOptions): void; + /** + * Get a hook value. Hooks are the subvalues of multi-value CSS properties. + * It features the same API as $.css(). + */ + hook(element: HTMLElement|JQuery, cssKey: string): string; + /** + * Set a hook value. Hooks are the subvalues of multi-value CSS properties. + * It features the same API as $.css(). + */ + hook(element: HTMLElement|JQuery, cssKey: string, cssValue: string): void; } interface VelocityOptions {