Browse Source

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 years ago
parent
commit
f0084a9dfe
1 changed files with 7 additions and 0 deletions
  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;
+
+}