Browse Source

Merge pull request #3202 from jregistr/provideTypings

Provide typings - reopened after adding missing file
文翼 8 years ago
parent
commit
aaafec01d2
2 changed files with 9 additions and 1 deletions
  1. 7 0
      index.d.ts
  2. 2 1
      package.json

+ 7 - 0
index.d.ts

@@ -0,0 +1,7 @@
+interface JQuery {
+
+    bootstrapTable(options: object): JQuery;
+
+    bootstrapTable(method: string, ...parameters: any[]): JQuery | any;
+
+}

+ 2 - 1
package.json

@@ -44,5 +44,6 @@
     "commitizen": {
       "path": "./node_modules/cz-conventional-changelog"
     }
-  }
+  },
+  "types": "./index.d.ts"
 }