diff --git a/foundation-sites/foundation-tests.ts b/foundation-sites/foundation-tests.ts
index f7da5e49c..54da9fb79 100644
--- a/foundation-sites/foundation-tests.ts
+++ b/foundation-sites/foundation-tests.ts
@@ -1,7 +1,6 @@
// 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
///
@@ -11,6 +10,60 @@ $(document).foundation();
$(document).foundation('method');
$(document).foundation(['method', 'method2']);
+
+ Foundation.Abide.($('.selector'));
+ Foundation.Abide.($('.selector'), {});
+/*
+ Foundation.Accordion.($('.selector'));
+ Foundation.Accordion.($('.selector'), {});
+
+ Foundation.AccordionMenu.($('.selector'));
+ Foundation.AccordionMenu.($('.selector'), {});
+
+ Foundation.DrillDown.($('.selector'));
+ Foundation.DrillDown.($('.selector'), {});
+
+ Foundation.Dropdown.($('.selector'));
+ Foundation.Dropdown.($('.selector'), {});
+
+ Foundation.DropdownMenu.($('.selector'));
+ Foundation.DropdownMenu.($('.selector'), {});
+
+ Foundation.Equalizer.($('.selector'));
+ Foundation.Equalizer.($('.selector'), {});
+
+ Foundation.Interchange.($('.selector'));
+ Foundation.Interchange.($('.selector'), {});
+
+ Foundation.Magellan.($('.selector'));
+ Foundation.Magellan.($('.selector'), {});
+
+ Foundation.OffCanvas.($('.selector'));
+ Foundation.OffCanvas.($('.selector'), {});
+
+ Foundation.Orbit.($('.selector'));
+ Foundation.Orbit.($('.selector'), {});
+
+ Foundation.Reveal.($('.selector'));
+ Foundation.Reveal.($('.selector'), {});
+
+ Foundation.Slider.($('.selector'));
+ Foundation.Slider.($('.selector'), {});
+
+ Foundation.Sticky.($('.selector'));
+ Foundation.Sticky.($('.selector'), {});
+
+ Foundation.Tabs.($('.selector'));
+ Foundation.Tabs.($('.selector'), {});
+
+ Foundation.Toggler.($('.selector'));
+ Foundation.Toggler.($('.selector'), {});
+
+ Foundation.Tooltip.($('.selector'));
+ Foundation.Tooltip.($('.selector'), {});
+ */
+
+/*
function pluginList() {
'use strict';
@@ -40,3 +93,5 @@ pluginList().forEach((value:String) => {
Foundation[value].($('.selector'));
Foundation[value].($('.selector'), {});
});
+
+*/
diff --git a/foundation-sites/foundation.d.ts b/foundation-sites/foundation.d.ts
index bcd012ec9..3ec7f344e 100644
--- a/foundation-sites/foundation.d.ts
+++ b/foundation-sites/foundation.d.ts
@@ -1,7 +1,6 @@
// 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
///
@@ -18,10 +17,10 @@ declare module Foundation {
validateForm(element:Object): void;
validateText(element:Object): boolean;
validateRadio(group:String): boolean;
- resetform($form:Object): void;
+ resetForm($form:Object): void;
}
- export interface IAbidePatterns {
+ interface IAbidePatterns {
alpha?: RegExp;
alpha_numeric?: RegExp;
integer?: RegExp;
@@ -40,8 +39,8 @@ declare module Foundation {
color?: RegExp;
}
- export interface IAbideOptions {
- slideSpeed?: number
+ interface IAbideOptions {
+ slideSpeed?: number;
multiOpen?: boolean;
patters?: Foundation.IAbidePatterns;
}
@@ -54,7 +53,7 @@ declare module Foundation {
destroy(): void;
}
- export interface IAccordionOptions {
+ interface IAccordionOptions {
slideSpeed?: number
multiOpen?: boolean;
}
@@ -67,7 +66,7 @@ declare module Foundation {
destroy(): void;
}
- export interface IAccordionMenuOptions {
+ interface IAccordionMenuOptions {
slideSpeed?: number;
multiOpen?: boolean;
}
@@ -80,7 +79,7 @@ declare module Foundation {
destroy(): void;
}
- export interface IDrilldownOptions {
+ interface IDrilldownOptions {
backButton?: String;
wrapper?: String
closeOnClick?: boolean
@@ -95,7 +94,7 @@ declare module Foundation {
destroy(): void;
}
- export interface IDropdownOptions {
+ interface IDropdownOptions {
hoverDelay?: number;
hover?: boolean;
vOffset?: number;
@@ -110,7 +109,7 @@ declare module Foundation {
destroy(): void;
}
- export interface IDropdownMenuOptions {
+ interface IDropdownMenuOptions {
disableHover?: boolean;
autoclose?: boolean;
hoverDelay?: number;
@@ -128,7 +127,7 @@ declare module Foundation {
destroy(): void;
}
- export interface IEqualizerOptions {
+ interface IEqualizerOptions {
equalizeOnStack?: boolean;
throttleInterval?: number;
}
@@ -139,7 +138,7 @@ declare module Foundation {
destroy(): void;
}
- export interface IInterchangeOptions {
+ interface IInterchangeOptions {
rules?: Array
}
@@ -150,7 +149,7 @@ declare module Foundation {
destroy(): void;
}
- export interface IMagellanOptions {
+ interface IMagellanOptions {
animationDuration?: number;
animationEasing?: String;
threshold?: number;
@@ -166,7 +165,7 @@ declare module Foundation {
destroy(): void;
}
- export interface IOffCanvasOptions {
+ interface IOffCanvasOptions {
closeOnClick?: boolean;
transitionTime?: number;
position?: String;
@@ -184,7 +183,7 @@ declare module Foundation {
destroy(): void;
}
- export interface IOrbitOptions {
+ interface IOrbitOptions {
bullets?: boolean;
navButtons?: boolean;
animInFromRight?: String;
@@ -212,7 +211,7 @@ declare module Foundation {
destroy(): void;
}
- export interface IRevealOptions {
+ interface IRevealOptions {
animationIn?: String;
animationOut?: String;
showDelay?: number;
@@ -233,7 +232,7 @@ declare module Foundation {
destroy(): void;
}
- export interface ISliderOptions {
+ interface ISliderOptions {
start?: number;
end?: number;
step?: number;
@@ -258,7 +257,7 @@ declare module Foundation {
emCalc(number:any): void;
}
- export interface IStickyOptions {
+ interface IStickyOptions {
container?: String;
stickTo?: String;
anchor?: String;
@@ -279,7 +278,7 @@ declare module Foundation {
destroy(): void;
}
- export interface ITabsOptions {
+ interface ITabsOptions {
animate?: boolean;
}
@@ -289,7 +288,7 @@ declare module Foundation {
destroy(): void;
}
- export interface ITogglerOptions {
+ interface ITogglerOptions {
animate?: boolean;
}
@@ -301,7 +300,7 @@ declare module Foundation {
destroy(): void;
}
- export interface ITooltipOptions {
+ interface ITooltipOptions {
hoverDelay?: number;
fadeInDuration?: number;
fadeOutDuration?: number;
@@ -381,7 +380,7 @@ declare module Foundation {
transitionend(): String;
util : {
- throttle(func:(...args:any[]) => any, delay:number) (...args:any[]) => any;
+ throttle(func:(...args:any[]) => any, delay:number): (...args:any[]) => any;
};
onImagesLoaded(images:Object, cb:Function): void;
@@ -415,6 +414,7 @@ declare module Foundation {
Triggers: Foundation.Triggers;
}
+
}
interface JQuery {
@@ -422,3 +422,7 @@ interface JQuery {
}
declare var Foundation:Foundation.FoundationStatic;
+
+declare module "Foundation" {
+ export = Foundation;
+}
diff --git a/npm-debug.log b/npm-debug.log
new file mode 100644
index 000000000..19dc7e7fd
--- /dev/null
+++ b/npm-debug.log
@@ -0,0 +1,45 @@
+0 info it worked if it ends with ok
+1 verbose cli [ '/usr/local/Cellar/node/4.2.1/bin/node',
+1 verbose cli '/usr/local/bin/npm',
+1 verbose cli 'run',
+1 verbose cli 'test' ]
+2 info using npm@3.3.9
+3 info using node@v4.2.1
+4 verbose run-script [ 'pretest', 'test', 'posttest' ]
+5 info lifecycle DefinitelyTyped@0.0.1~pretest: DefinitelyTyped@0.0.1
+6 silly lifecycle DefinitelyTyped@0.0.1~pretest: no script for pretest, continuing
+7 info lifecycle DefinitelyTyped@0.0.1~test: DefinitelyTyped@0.0.1
+8 verbose lifecycle DefinitelyTyped@0.0.1~test: unsafe-perm in lifecycle true
+9 verbose lifecycle DefinitelyTyped@0.0.1~test: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Volumes/Data/Kwerri/playground/DefinitelyTyped/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin
+10 verbose lifecycle DefinitelyTyped@0.0.1~test: CWD: /Volumes/Data/Kwerri/playground/DefinitelyTyped
+11 silly lifecycle DefinitelyTyped@0.0.1~test: Args: [ '-c', 'dt --changes' ]
+12 silly lifecycle DefinitelyTyped@0.0.1~test: Returned: code: 1 signal: null
+13 info lifecycle DefinitelyTyped@0.0.1~test: Failed to exec test script
+14 verbose stack Error: DefinitelyTyped@0.0.1 test: `dt --changes`
+14 verbose stack Exit status 1
+14 verbose stack at EventEmitter. (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:233:16)
+14 verbose stack at emitTwo (events.js:87:13)
+14 verbose stack at EventEmitter.emit (events.js:172:7)
+14 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14)
+14 verbose stack at emitTwo (events.js:87:13)
+14 verbose stack at ChildProcess.emit (events.js:172:7)
+14 verbose stack at maybeClose (internal/child_process.js:818:16)
+14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
+15 verbose pkgid DefinitelyTyped@0.0.1
+16 verbose cwd /Volumes/Data/Kwerri/playground/DefinitelyTyped
+17 error Darwin 15.0.0
+18 error argv "/usr/local/Cellar/node/4.2.1/bin/node" "/usr/local/bin/npm" "run" "test"
+19 error node v4.2.1
+20 error npm v3.3.9
+21 error code ELIFECYCLE
+22 error DefinitelyTyped@0.0.1 test: `dt --changes`
+22 error Exit status 1
+23 error Failed at the DefinitelyTyped@0.0.1 test script 'dt --changes'.
+23 error This is most likely a problem with the DefinitelyTyped package,
+23 error not with npm itself.
+23 error Tell the author that this fails on your system:
+23 error dt --changes
+23 error You can get their info via:
+23 error npm owner ls DefinitelyTyped
+23 error There is likely additional logging output above.
+24 verbose exit [ 1, true ]