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