Skip to content

Commit c82cfe5

Browse files
committed
0.6.0 - Update to TypeScript 4.0
1 parent df4ce3b commit c82cfe5

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,15 @@
22
All notable changes to this project will be documented in this file.
33
This project does its best to adhere to [Semantic Versioning](http://semver.org/).
44

5+
6+
--------
7+
### [0.6.0](N/A) - 2020-09-04
8+
#### Changed
9+
* Update to TypeScript 4.0
10+
11+
512
--------
6-
### [0.5.2](N/A) - 2019-11-08
13+
### [0.5.2](https://github.com/TeamworkGuy2/excel-builder-ts/commit/df4ce3b7a57d68c64cc1a285b5cd80fca8deedca) - 2019-11-08
714
#### Changed
815
* Update to TypeScript 3.7
916

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "excel-builder-ts",
3-
"version": "0.5.2",
3+
"version": "0.6.0",
44
"description": "TypeScript Port of excel-builder.js - A way to build excel files with javascript",
55
"author": "TeamworkGuy2",
66
"homepage": "https://github.com/TeamworkGuy2/excel-builder-ts",
@@ -15,7 +15,7 @@
1515
"@types/mocha": "~5.2.7",
1616
"chai": "~4.2.0",
1717
"mocha": "~5.2.0",
18-
"typescript": "~3.7.2"
18+
"typescript": "~4.0.2"
1919
},
2020
"scripts": {
2121
"test": "node node_modules/mocha/bin/_mocha -u tdd --recursive",

worksheet/StyleSheet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ class StyleSheet {
226226
* }
227227
*/
228228
public createBorderFormatter(border?: { top?: any; left?: any; right?: any; bottom?: any; diagonal?: any; outline?: boolean; diagonalUp?: boolean; diagonalDown?: boolean;[id: string]: any; }) {
229-
var res: StyleSheet.Border & { id: number } = Util.defaults(<Exclude<typeof border, undefined>>border, {
229+
var res = <StyleSheet.Border & { id: number }>Util.defaults(<Exclude<typeof border, undefined>>border, {
230230
top: {},
231231
left: {},
232232
right: {},

worksheet/Worksheet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class Worksheet {
122122
*/
123123
public importData(data: Partial<Worksheet.ExportData> & { relations: RelationshipManager.ExportData }): void {
124124
this.relations.importData(data.relations);
125-
delete data.relations;
125+
delete (<any>data).relations;
126126
Object.assign(this, data);
127127
}
128128

0 commit comments

Comments
 (0)