I am trying to write an interface to describe the foundation JQuery plugin. The plugin uses the first parameter to determine the child plugin that is called with the foundation plugin.
Below is an example of what i am trying to achieve.
/// <reference path="jquery.d.ts"/>
interface JQuery {
foundation(plugin:'reveal',action:string):void;
foundation(plugin:'dropdown',action:string,$el:JQuery):void;
}
How do i describe a fixed string parameter within a typescript definition?