diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000000..65e026afa6 --- /dev/null +++ b/index.d.ts @@ -0,0 +1,7 @@ +interface JQuery { + + bootstrapTable(options: object): JQuery; + + bootstrapTable(method: string, ...parameters: any[]): JQuery | any; + +} \ No newline at end of file diff --git a/package.json b/package.json index f2ade84868..ebb106555e 100644 --- a/package.json +++ b/package.json @@ -44,5 +44,6 @@ "commitizen": { "path": "./node_modules/cz-conventional-changelog" } - } + }, + "types": "./index.d.ts" }