From 503bffdd6a5a363ec08f8c4151c8d7ab0e005641 Mon Sep 17 00:00:00 2001 From: Cyril Schumacher Date: Fri, 16 Jan 2015 15:35:38 +0100 Subject: [PATCH] Delete "Twitter Bootstrap Wizard Plugin": a definition file already exists. --- .../twitter-bootstrap-wizard-plugin-test.ts | 29 --- .../twitter-bootstrap-wizard-plugin.d.ts | 175 ------------------ ...witter-bootstrap-wizard-plugin.ts.tscparam | 1 - 3 files changed, 205 deletions(-) delete mode 100644 twitter-bootstrap-wizard-plugin/twitter-bootstrap-wizard-plugin-test.ts delete mode 100644 twitter-bootstrap-wizard-plugin/twitter-bootstrap-wizard-plugin.d.ts delete mode 100644 twitter-bootstrap-wizard-plugin/twitter-bootstrap-wizard-plugin.ts.tscparam diff --git a/twitter-bootstrap-wizard-plugin/twitter-bootstrap-wizard-plugin-test.ts b/twitter-bootstrap-wizard-plugin/twitter-bootstrap-wizard-plugin-test.ts deleted file mode 100644 index 1fe881ee41..0000000000 --- a/twitter-bootstrap-wizard-plugin/twitter-bootstrap-wizard-plugin-test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/// -/// - -var rootwizard: JQuery = $('#rootwizard'); - -/** - * @summary Test for basic usage. - */ -function testBasicUsage() { - rootwizard.bootstrapWizard(); -} - -/** - * @summary Test for basic pills usage. - */ -function testOptions() { - var options: TwitterBootstrapWizard = {'tabClass': 'nav nav-pills', 'backSelector': 'back'}; - rootwizard.bootstrapWizard(options); -} - -/** - * @summary Test for event. - */ -function testEvent() { - var onTabShowEvent: TwitterBootstrapWizardEvent = (activeTab: JQuery, navigation: JQuery, index: number) => {} - - var options: TwitterBootstrapWizard = {onTabShow: onTabShowEvent}; - rootwizard.bootstrapWizard(options); -} \ No newline at end of file diff --git a/twitter-bootstrap-wizard-plugin/twitter-bootstrap-wizard-plugin.d.ts b/twitter-bootstrap-wizard-plugin/twitter-bootstrap-wizard-plugin.d.ts deleted file mode 100644 index 6d9a51fda2..0000000000 --- a/twitter-bootstrap-wizard-plugin/twitter-bootstrap-wizard-plugin.d.ts +++ /dev/null @@ -1,175 +0,0 @@ -// Type definitions for Twitter Bootstrap Wizard Plugin -// Project: https://github.com/VinceG/twitter-bootstrap-wizard -// Definitions by: Cyril Schumacher -// Definitions: https://github.com/borisyankov/DefinitelyTyped - -/** - * @summary Interface for event. - * @author Cyril Schumacher - * @version 1.0 - */ -interface TwitterBootstrapWizardEvent extends Function { - ( - /** - * @summary Active tab. - * @type {jQuery} - */ - activeTab: JQuery, - - /** - * @summary Navigation. - * @type {jQuery} - */ - navigation: JQuery, - - /** - * @summary Index. - * @type {number} - */ - index: number - ): void; -} - -/** - * @summary Interface for events. - * @author Cyril Schumacher - * @version 1.0 - */ -interface TwitterBootstrapWizardEvents { - /** - * @summary Fired when back button is clicked (return false to disable moving backwards in navigation history). - * @type {TwitterBootstrapWizardEvent} - */ - onBack?: TwitterBootstrapWizardEvent; - - /** - * @summary Fired when finish button is clicked (return value is irrelevant). - * @type {TwitterBootstrapWizardEvent} - */ - onFinish?: TwitterBootstrapWizardEvent; - - /** - * @summary Fired when first button is clicked (return false to disable moving to the first step). - * @type {TwitterBootstrapWizardEvent} - */ - onFirst?: TwitterBootstrapWizardEvent; - - /** - * @summary Fired when last button is clicked (return false to disable moving to the last step). - * @type {TwitterBootstrapWizardEvent} - */ - onLast?: TwitterBootstrapWizardEvent; - - /** - * @summary Fired when plugin is initialized. - * @type {TwitterBootstrapWizardEvent} - */ - onInit?: TwitterBootstrapWizardEvent; - - /** - * @summary Fired when next button is clicked (return false to disable moving to the next step). - * @type {TwitterBootstrapWizardEvent} - */ - onNext?: TwitterBootstrapWizardEvent; - - /** - * @summary Fired when previous button is clicked (return false to disable moving to the previous step). - * @type {TwitterBootstrapWizardEvent} - */ - onPrevious?: TwitterBootstrapWizardEvent; - - /** - * @summary Fired when plugin data is shown. - * @type {TwitterBootstrapWizardEvent} - */ - onShow?: TwitterBootstrapWizardEvent; - - /** - * @summary Fired when a tab is changed (return false to disable moving to that tab and showing its contents). - * @type {TwitterBootstrapWizardEvent} - */ - onTabChange?: TwitterBootstrapWizardEvent; - - /** - * @summary Fired when a tab is clicked (return false to disable moving to that tab and showing its contents). - * @type {TwitterBootstrapWizardEvent} - */ - onTabClick?: TwitterBootstrapWizardEvent; - - /** - * @summary Fired when a tab content is shown (return false to disable showing that tab content). - * @type {TwitterBootstrapWizardEvent} - */ - onTabShow?: TwitterBootstrapWizardEvent; -} - -/** - * @summary Interface for options. - * @author Cyril Schumacher - * @version 1.0 - */ -interface TwitterBootstrapWizardOptions { - - /** - * @summary Back element selector. - * @type {string} - */ - backSelector?: string; - - /** - * @summary Finish element selector. - * @type {string} - */ - finishSelector?: string; - - /** - * @summary First element selector. - * @type {string} - */ - firstSelector?: string; - - /** - * @summary Last element selector. - * @type {string} - */ - lastSelector?: string; - - /** - * @summary Next element selector. - * @type {string} - */ - nextSelector?: string; - - /** - * @summary Previous element selector. - * @type {string} - */ - previousSelector?: string; - - /** - * @summary Navigation class. - */ - tabClass?: string; -} - -/** - * @summary Interface for options. - * @author Cyril Schumacher - * @version 1.0 - */ -interface TwitterBootstrapWizard extends TwitterBootstrapWizardOptions, TwitterBootstrapWizardEvents { - // to leave empty: it contains the other two interfaces: "TwitterBootstrapWizardOptions" and "TwitterBootstrapWizardEvents". -} - -/** - * @summary JQuery interface. - * @author Cyril Schumacher - * @version 1.0 - */ -interface JQuery { - /** - * Configure wizard. - * @param {ITwitterBootstrapWizardOptions} options Options. - */ - bootstrapWizard(options?: TwitterBootstrapWizard): void; -} \ No newline at end of file diff --git a/twitter-bootstrap-wizard-plugin/twitter-bootstrap-wizard-plugin.ts.tscparam b/twitter-bootstrap-wizard-plugin/twitter-bootstrap-wizard-plugin.ts.tscparam deleted file mode 100644 index 934bc29ef2..0000000000 --- a/twitter-bootstrap-wizard-plugin/twitter-bootstrap-wizard-plugin.ts.tscparam +++ /dev/null @@ -1 +0,0 @@ ---noImplicitAny \ No newline at end of file