From 80dd1892b57191a0323dd3f03065a47606dbb37c Mon Sep 17 00:00:00 2001 From: Blake Niemyjski Date: Wed, 23 Jan 2013 14:39:28 -0600 Subject: [PATCH] Updated Request read me. Added definitions for ZeroClipboard and twitter-bootstrap-wizard. --- README.md | 5 +- ZeroClipboard/ZeroClipboard.d.ts | 19 ++++++++ .../jquery.bootstrap.wizard.d.ts | 48 +++++++++++++++++++ 3 files changed, 71 insertions(+), 1 deletion(-) create mode 100644 ZeroClipboard/ZeroClipboard.d.ts create mode 100644 jquery.bootstrap.wizard/jquery.bootstrap.wizard.d.ts diff --git a/README.md b/README.md index f8784e6cf..01f26a72f 100644 --- a/README.md +++ b/README.md @@ -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/) \ No newline at end of file diff --git a/ZeroClipboard/ZeroClipboard.d.ts b/ZeroClipboard/ZeroClipboard.d.ts new file mode 100644 index 000000000..42191c0a8 --- /dev/null +++ b/ZeroClipboard/ZeroClipboard.d.ts @@ -0,0 +1,19 @@ +// Type definitions for ZeroClipboard +// Project: https://github.com/jonrohan/ZeroClipboard +// Definitions by: Eric J. Smith +// Updated by: Blake 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); + } +} \ No newline at end of file diff --git a/jquery.bootstrap.wizard/jquery.bootstrap.wizard.d.ts b/jquery.bootstrap.wizard/jquery.bootstrap.wizard.d.ts new file mode 100644 index 000000000..78a5730f1 --- /dev/null +++ b/jquery.bootstrap.wizard/jquery.bootstrap.wizard.d.ts @@ -0,0 +1,48 @@ +// Type definitions for twitter-bootstrap-wizard +// Project: https://github.com/VinceG/twitter-bootstrap-wizard +// Definitions by: Blake Niemyjski +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +/// + +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; +} \ No newline at end of file