From 4882fcb163fd825968d19e698fe74a5f3d96d091 Mon Sep 17 00:00:00 2001 From: Pat Sissons Date: Sun, 13 Nov 2016 15:17:42 -0800 Subject: [PATCH] adding jquery-param typings --- jquery-param/index.d.ts | 9 +++++++++ jquery-param/jquery-param-tests.ts | 3 +++ jquery-param/tsconfig.json | 19 +++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 jquery-param/index.d.ts create mode 100644 jquery-param/jquery-param-tests.ts create mode 100644 jquery-param/tsconfig.json diff --git a/jquery-param/index.d.ts b/jquery-param/index.d.ts new file mode 100644 index 0000000000..4e1031da2f --- /dev/null +++ b/jquery-param/index.d.ts @@ -0,0 +1,9 @@ +// Type definitions for jquery-param v1.0.0 +// Project: https://github.com/knowledgecode/jquery-param +// Definitions by: Pat Sissons + +export as namespace param; + +export = param; + +declare function param(obj: any): string; diff --git a/jquery-param/jquery-param-tests.ts b/jquery-param/jquery-param-tests.ts new file mode 100644 index 0000000000..cdea4dd342 --- /dev/null +++ b/jquery-param/jquery-param-tests.ts @@ -0,0 +1,3 @@ +import param = require('jquery-param'); + +const test1 = param({ a: 'A', b: 'B', c: 'C' }); diff --git a/jquery-param/tsconfig.json b/jquery-param/tsconfig.json new file mode 100644 index 0000000000..cd5ade28aa --- /dev/null +++ b/jquery-param/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "jquery-param-tests.ts" + ] +} \ No newline at end of file