浏览代码

Adding simple type definitions

Added "types" to package.json as directed by https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html.
Added dependency on jquery typings.
Lastly, added index.d.ts which contains the simple typescript definitions
to work with this library.
Jeff Registre 8 年之前
父节点
当前提交
f0084a9dfe
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      index.d.ts

+ 7 - 0
index.d.ts

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