From 26470d8f6df968f6507254915b366c0a9376e247 Mon Sep 17 00:00:00 2001 From: Mustafa Salaheldin Date: Tue, 7 Apr 2020 22:41:37 +0400 Subject: [PATCH] zurb-twentytwenty (#43567) * udating index.d.ts adding unconsolidate() method to Model class * updating index.d.ts * adding selector added selector: JQuery; to support jquer backward compatability. * adding bootstrap-filestylle adding bootstrap-filestylle * adding comments adding comments * update tslint update tslint * adding version adding 1.2.1 to version * unifi signature unifi signature * update version update version * Update index.d.ts * bootstrap-multiselect bootstrap-multiselect * Update tsconfig.json * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * Update index.d.ts * create zurb-twentytwenty Create a type definition for zurb-twentytwenty * Update tsconfig.json * Update index.d.ts * Update index.d.ts * Update index.d.ts * update files * Update index.d.ts --- types/zurb-twentytwenty/index.d.ts | 22 ++++++++++++++++++++++ types/zurb-twentytwenty/tsconfig.json | 25 +++++++++++++++++++++++++ types/zurb-twentytwenty/tslint.json | 8 ++++++++ 3 files changed, 55 insertions(+) create mode 100644 types/zurb-twentytwenty/index.d.ts create mode 100644 types/zurb-twentytwenty/tsconfig.json create mode 100644 types/zurb-twentytwenty/tslint.json diff --git a/types/zurb-twentytwenty/index.d.ts b/types/zurb-twentytwenty/index.d.ts new file mode 100644 index 0000000000..a8cc0801f3 --- /dev/null +++ b/types/zurb-twentytwenty/index.d.ts @@ -0,0 +1,22 @@ +// Type definitions for zurb.twentytwenty 0.1 +// Project: https://github.com/zurb/twentytwenty +// Definitions by: Mustafa Salaheldin +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +/// + +interface TwentyTwentyOptions { + default_offset_pct?: number; + orientation?: string; + before_label?: string; + after_label?: string; + no_overlay?: boolean; + move_slider_on_hover?: boolean; + move_with_handle_only?: boolean; + click_to_move?: boolean; +} + +interface JQuery { + twentytwenty(options?: TwentyTwentyOptions): JQuery; +} diff --git a/types/zurb-twentytwenty/tsconfig.json b/types/zurb-twentytwenty/tsconfig.json new file mode 100644 index 0000000000..84deef3c1b --- /dev/null +++ b/types/zurb-twentytwenty/tsconfig.json @@ -0,0 +1,25 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "dom", + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + + "index.d.ts" + + ] +} diff --git a/types/zurb-twentytwenty/tslint.json b/types/zurb-twentytwenty/tslint.json new file mode 100644 index 0000000000..a7bed62852 --- /dev/null +++ b/types/zurb-twentytwenty/tslint.json @@ -0,0 +1,8 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + + "interface-name": [true, "never-prefix"] + + } +}