From 6ced381e2f78f050b810e1b2c8387734a35f62eb Mon Sep 17 00:00:00 2001 From: Michal Wrzesniewski Date: Thu, 3 Dec 2015 10:32:56 +0100 Subject: [PATCH 1/3] test file created --- foundation-sites/foundation-tests.ts | 2 ++ foundation-sites/foundation.d.ts | 25 +++++-------------------- 2 files changed, 7 insertions(+), 20 deletions(-) create mode 100644 foundation-sites/foundation-tests.ts diff --git a/foundation-sites/foundation-tests.ts b/foundation-sites/foundation-tests.ts new file mode 100644 index 000000000..7aab47e80 --- /dev/null +++ b/foundation-sites/foundation-tests.ts @@ -0,0 +1,2 @@ +/// +/// \ No newline at end of file diff --git a/foundation-sites/foundation.d.ts b/foundation-sites/foundation.d.ts index c72a93ba1..1093a954a 100644 --- a/foundation-sites/foundation.d.ts +++ b/foundation-sites/foundation.d.ts @@ -344,6 +344,8 @@ declare module Foundation { interface Nest { // TODO + //Feather: function(menu, type) + // Burn: function(menu, type){ } export interface Timer { @@ -360,29 +362,12 @@ declare module Foundation { // TODO :extension on jQuery } - export interface InterChange { - destroy: () => void; - } + interface IInterChangeOptions { - rules ?: Array; - } - interface ITooltipOptions { - hoverDelay ?: number; - fadeInDuration ?: number; - fadeOutDuration ?: number; - disableHover ?: boolean; - templateClasses ?: String; - tooltipClass ?: String; - triggerClass ?: String; - showOn ?: String; - template ?: String; - tipText ?: String; - clickOpenr ?: boolean; - positionClass ?: String; - vOffset ?: number; - hOffset ?: number; + rules ?: Array; } + interface FoundationStatic { version : String; From 400a0e998dcf4acec0049aa1282010129b792401 Mon Sep 17 00:00:00 2001 From: Michal Wrzesniewski Date: Thu, 3 Dec 2015 10:35:11 +0100 Subject: [PATCH 2/3] test file: Header added --- foundation-sites/foundation-tests.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/foundation-sites/foundation-tests.ts b/foundation-sites/foundation-tests.ts index 7aab47e80..e99545d6d 100644 --- a/foundation-sites/foundation-tests.ts +++ b/foundation-sites/foundation-tests.ts @@ -1,2 +1,8 @@ +// Tests for type definitions for Foundation Sites v6.0.4 +// Project: http://foundation.zurb.com/ +// Definitions by: Sam Vloeberghs +// Definitions by: Michał Wrześniewski +// Definitions: https://github.com/borisyankov/DefinitelyTyped + /// /// \ No newline at end of file From 281dabc4bef9a2e2219a26c10d567ab3d024891e Mon Sep 17 00:00:00 2001 From: Michal Wrzesniewski Date: Thu, 3 Dec 2015 10:37:50 +0100 Subject: [PATCH 3/3] Equalizer compiler error fixed --- foundation-sites/foundation.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/foundation-sites/foundation.d.ts b/foundation-sites/foundation.d.ts index 1093a954a..27d761a38 100644 --- a/foundation-sites/foundation.d.ts +++ b/foundation-sites/foundation.d.ts @@ -118,7 +118,7 @@ declare module Foundation { // http://foundation.zurb.com/sites/docs/equalizer.html#javascript-reference export interface Equalizer { getHeights: (element:Object) => Array; - applyHeight: ($eqParent:Object, heights:Array) => void; + applyHeight: ($eqParent:Object, heights:Array) => void; destroy: () => void; }