Merge pull request #17565 from laureysruben/patch-1

Update to Jquery.foundation method typing
This commit is contained in:
Ryan Cavanaugh
2017-07-12 10:00:49 -07:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
@@ -1,6 +1,6 @@
$(document).foundation();
$(document).foundation('method5');
$(document).foundation(['method', 'method2']);
$(document).foundation('method', 'method2');
Foundation.Abide($('.selector'));
Foundation.Abide($('.selector'), {});
+1 -1
View File
@@ -447,7 +447,7 @@ declare namespace FoundationSites {
}
interface JQuery {
foundation(method?:string|Array<any>) : JQuery;
foundation(method?: string, ...args: any[]): JQuery;
}
declare var Foundation:FoundationSites.FoundationSitesStatic;