mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 12:42:58 +08:00
Merge pull request #12657 from patsissons/jquery-param
Adding jquery-param typings
This commit is contained in:
9
jquery-param/index.d.ts
vendored
Normal file
9
jquery-param/index.d.ts
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
// Type definitions for jquery-param v1.0.0
|
||||
// Project: https://github.com/knowledgecode/jquery-param
|
||||
// Definitions by: Pat Sissons <http://github.com/patsissons>
|
||||
|
||||
export as namespace param;
|
||||
|
||||
export = param;
|
||||
|
||||
declare function param(obj: any): string;
|
||||
3
jquery-param/jquery-param-tests.ts
Normal file
3
jquery-param/jquery-param-tests.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import param = require('jquery-param');
|
||||
|
||||
const test1 = param({ a: 'A', b: 'B', c: 'C' });
|
||||
19
jquery-param/tsconfig.json
Normal file
19
jquery-param/tsconfig.json
Normal file
@@ -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"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user