Merge pull request #212 from niemyjski/master

Added definitions for ZeroClipboard and twitter-bootstrap-wizard.
This commit is contained in:
Boris Yankov
2013-01-23 14:11:55 -08:00
3 changed files with 71 additions and 1 deletions
+4 -1
View File
@@ -115,6 +115,7 @@ List of Definitions
* [Toastr](https://github.com/CodeSeven/toastr) (by [Boris Yankov](https://github.com/borisyankov))
* [TweenJS](http://www.createjs.com/#!/TweenJS) (by [Pedro Ferreira](https://bitbucket.org/drk4))
* [tween.js](https://github.com/sole/tween.js/) (by [Adam R. Smith](https://github.com/sunetos))
* [twitter-bootstrap-wizard](https://github.com/VinceG/twitter-bootstrap-wizard) (by [Blake Niemyjski](https://github.com/niemyjski))
* [Ubuntu Unity Web API](https://launchpad.net/libunity-webapps) (by [John Vrbanac](https://github.com/jmvrbanac))
* [Underscore.js](http://underscorejs.org/) (by [Boris Yankov](https://github.com/borisyankov))
* [Underscore.js (Typed)](http://underscorejs.org/) (by [Josh Baldwin](https://github.com/jbaldwin/))
@@ -123,9 +124,12 @@ List of Definitions
* [WebRTC](http://dev.w3.org/2011/webrtc/editor/webrtc.html) (by [Ken Smith](https://github.com/smithkl42))
* [YouTube](https://developers.google.com/youtube/) (by [Daz Wilkin](https://github.com/DazWilkin/))
* [Zynga Scroller](https://github.com/zynga/scroller) (by [Boris Yankov](https://github.com/borisyankov))
* [ZeroClipboard] (https://github.com/jonrohan/ZeroClipboard) (by [Eric J. Smith] (https://github.com/ejsmith))
Requested Definitions
---------------------
* [Numeral-js](https://github.com/adamwdraper/Numeral-js)
* [Rickshaw](https://github.com/shutterstock/rickshaw)
* [Crossfilter](https://github.com/square/crossfilter)
* [dc.js](https://github.com/NickQiZhu/dc.js)
* [store.js](https://github.com/marcuswestin/store.js)
@@ -133,7 +137,6 @@ Requested Definitions
* [Tags Manager](http://welldonethings.com/tags/manager)
* [jsoneditoronline](https://github.com/wjosdejong/jsoneditoronline)
* [Tags Manager](http://welldonethings.com/tags/manager)
* [Rickshaw](https://github.com/shutterstock/rickshaw)
* [Prelude.ls](http://gkz.github.com/prelude-ls/)
* [MooTools](http://mootools.net/)
* [Lo-Dash](http://lodash.com/)
+19
View File
@@ -0,0 +1,19 @@
// Type definitions for ZeroClipboard
// Project: https://github.com/jonrohan/ZeroClipboard
// Definitions by: Eric J. Smith <https://github.com/ejsmith>
// Updated by: Blake Niemyjski <https://github.com/niemyjski>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
module ZeroClipboard {
export function setMoviePath(moviePath: string);
export class Client {
constructor(element?: any);
setText(text: string);
ready: bool;
clipText: string;
handCursorEnabled: bool;
cssEffects: bool;
glue(element);
}
}
+48
View File
@@ -0,0 +1,48 @@
// Type definitions for twitter-bootstrap-wizard
// Project: https://github.com/VinceG/twitter-bootstrap-wizard
// Definitions by: Blake Niemyjski <https://github.com/niemyjski>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../jquery/jquery.d.ts"/>
interface WizardOptions {
tabClass?: string;
nextSelector?: string;
previousSelector?: string;
firstSelector?: string;
lastSelector?: string;
onShow?: (activeTab: any, navigation: any, nextIndex: number) => void;
onInit?: (activeTab: any, navigation: any, currentIndex: number) => void;
onNext?: (activeTab: any, navigation: any, nextIndex: number) => bool;
onPrevious?: (activeTab: any, navigation: any, previousIndex: number) => bool;
onLast?: (activeTab: any, navigation: any, lastIndex: number) => bool;
onFirst?: (activeTab: any, navigation: any, firstIndex: number) => bool;
onTabClick?: (activeTab: any, navigation: any, currentIndex: number) => bool;
onTabShow?: (activeTab: any, navigation: any, currentIndex: number) => bool;
}
interface Wizard {
next(): void;
previous(): void;
first(): void;
last(): void;
currentIndex(): number;
firstIndex(): number;
lastIndex(): number;
getIndex(element: any): number;
nextIndex(): number;
previousIndex(): number;
navigationLength(): number;
activeTab(): any;
nextTab(): any;
previousTab(): any;
show(index: number): any;
}
interface JQuery {
bootstrapWizard(options?: WizardOptions): Wizard;
}
interface JQueryStatic {
bootstrapWizard: Wizard;
}