diff --git a/dist/jquery.floatThead.d.ts b/dist/jquery.floatThead.d.ts new file mode 100644 index 0000000..a249b9c --- /dev/null +++ b/dist/jquery.floatThead.d.ts @@ -0,0 +1,24 @@ +interface floatTheadOptions { + position?: string; + scrollContainer?: ($container: JQuery) => void | boolean; + responsiveContainer?: ($container: JQuery) => void; + ariaLabel: ($table: JQuery, $headerCell: JQuery, columnIndex: number) => void; + headerCellSelector?: string; + floatTableClass?: string; + floatContainerClass?: string; + top?: number; + bottom?: number; + zIndex?: number; + debug?: boolean; + getSizingRow?: () => void; + copyTableClass?: boolean; + autoReflow?: boolean; +} + +interface JQuery { + floatThead(floatTheadOptions?: floatTheadOptions): void; + floatThead(action: string): void; + trigger(action: string): void; + on(events: string, handler: (event: Event, $floatContainer: JQuery) => void): void; + on(events: string, handler: (event: Event, isFloated: boolean, $floatContainer: JQuery) => void): void; +} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 8ab4070..d4529ed 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,8 +22,8 @@ "integrity": "sha512-uy82472lH8tshK3jS3c5IFb5MmNKd/5qyBd0ih8sM42L3jWvxnE339U9gZU1zufnLVs98Stib9twq8dLm2XYCA==", "dev": true, "requires": { - "commander": "2.15.1", - "source-map": "0.6.1" + "commander": "~2.15.0", + "source-map": "~0.6.1" } } } diff --git a/package.json b/package.json index 887fc39..eabc52c 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "2.1.4", "description": "fixed table header plugin that works", "main": "dist/jquery.floatThead.min.js", + "type": "dist/jquery.floatThead.d.ts", "scripts": { "build": "cp src/jquery.floatThead.js dist/jquery.floatThead.js && uglifyjs dist/jquery.floatThead.js --compress --mangle --comments -o dist/jquery.floatThead.min.js" }, @@ -21,7 +22,7 @@ "fixed table header", "table", "thead", - "the cat is cute", + "the cat is cute", "floatThead", "scrolling table", "jQuery plugin"