-
-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
36 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
export declare const b64toBlob: (b64Data: string, contentType: string, sliceSize?: number) => Blob; | ||
export declare const templates: { | ||
excel: string; | ||
}; | ||
/** | ||
* Convert a string to Base64. | ||
*/ | ||
export declare const base64: (s: string) => string; | ||
export declare const format: (s: string, context: any) => string; | ||
/** | ||
* Get element by ID. | ||
* @param {*} element | ||
*/ | ||
export declare const getTable: (element: (HTMLTableElement | string)) => HTMLTableElement; | ||
/** | ||
* Get element by ID. | ||
* @param {*} element | ||
*/ | ||
export declare const getAnchor: (element: (HTMLAnchorElement | string)) => HTMLAnchorElement; | ||
export declare const tableToArray: (table: HTMLTableElement) => any[][]; | ||
export declare const tableToCSV: (table: HTMLTableElement, csvDelimiter?: string, csvNewLine?: string) => string; | ||
export declare const createDownloadLink: (anchor: HTMLAnchorElement, base64data: string, exporttype: string, filename: string) => boolean; | ||
export declare const string2ArrayBuffer: (s: string) => ArrayBuffer; | ||
export declare const removeColumns: (dataArray: any[][], columnIndexes: number[]) => void; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
"esModuleInterop": true | ||
}, | ||
"include": [ | ||
"src/excellentexport.ts", | ||
"src/**/*.ts", | ||
"test/**/*.{ts,js}" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,5 +24,8 @@ module.exports = { | |
}, | ||
performance: { | ||
hints: false | ||
} | ||
}, | ||
resolve: { | ||
extensions: ['.ts', '.js'] | ||
}, | ||
}; |