Skip to content

Commit ce1061e

Browse files
committed
0.3.2 - Update to TypeScript 2.7, update dependencies, enable tsconfig.json 'noImplicitAny' and fix resulting type errors.
1 parent aae03a4 commit ce1061e

28 files changed

+86
-75
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,15 @@ This project does its best to adhere to [Semantic Versioning](http://semver.org/
44

55

66
--------
7-
### [0.3.1](N/A) - 2017-10-26
7+
### [0.3.2](N/A) - 2018-02-28
8+
#### Changed
9+
* Update to TypeScript 2.7
10+
* Update dependencies: mocha, @types/chai, @types/mocha
11+
* Enable tsconfig.json `noImplicitAny` and add/refine missing types
12+
13+
14+
--------
15+
### [0.3.1](https://github.com/TeamworkGuy2/excel-builder-ts/commit/aae03a4578b41d6eef08af6d3908c875e6c5e4fc) - 2017-10-26
816
#### Fixed
917
* Fix `importScripts()` definition in ZipWorker to match the definition in `WorksheetExportWorker`
1018

ExcelBuilder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var Workbook = require("./workbook/Workbook");
99
* @requires JSZIP
1010
* @exports excel-builder
1111
*/
12-
var ExcelBuilder = (function () {
12+
var ExcelBuilder = /** @class */ (function () {
1313
function ExcelBuilder() {
1414
}
1515
/** Creates a new workbook.

drawings/AbsoluteAnchor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict";
22
var Util = require("../util/Util");
3-
var AbsoluteAnchor = (function () {
3+
var AbsoluteAnchor = /** @class */ (function () {
44
/**
55
* @param config
66
* config.x X offset in EMU's

drawings/Chart.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"use strict";
2-
var Chart = (function () {
2+
var Chart = /** @class */ (function () {
33
function Chart(config) {
44
}
55
return Chart;

drawings/Chart.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
class Chart {
33

4-
constructor(config?) {
4+
constructor(config?: any) {
55
}
66

77
}

drawings/Drawing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ var TwoCellAnchor = require("./TwoCellAnchor");
77
* path information from/to.
88
* @module Excel/Drawing
99
*/
10-
var Drawing = (function () {
10+
var Drawing = /** @class */ (function () {
1111
/**
1212
* @constructor
1313
*/

drawings/Drawing.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ abstract class Drawing implements Drawings.Drawing {
2727
* @param config Shorthand - pass the created anchor coords that can normally be used to construct it.
2828
* @returns a cell anchor object
2929
*/
30-
public createAnchor(type: "absoluteAnchor" | "oneCellAnchor" | "twoCellAnchor", config?: { drawing?; from?: Util.OffsetConfig; to?: Util.OffsetConfig; } & Util.Pos): Drawing.AnchorLike {
30+
public createAnchor(type: "absoluteAnchor" | "oneCellAnchor" | "twoCellAnchor", config?: { drawing?: Drawings.Drawing; from?: Util.OffsetConfig; to?: Util.OffsetConfig; } & Util.Pos): Drawing.AnchorLike {
3131
config = config || <any>{};
3232
config.drawing = this;
3333
switch (type) {

drawings/Drawings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var RelationshipManager = require("../worksheet/RelationshipManager");
44
/**
55
* @module Excel/Drawings
66
*/
7-
var Drawings = (function () {
7+
var Drawings = /** @class */ (function () {
88
function Drawings() {
99
this.drawings = [];
1010
this.relations = new RelationshipManager();

drawings/OneCellAnchor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict";
22
var Util = require("../util/Util");
3-
var OneCellAnchor = (function () {
3+
var OneCellAnchor = /** @class */ (function () {
44
/**
55
* @param config
66
* config.x The cell column number that the top left of the picture will start in

drawings/Picture.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use strict";
22
var Util = require("../util/Util");
33
var Drawing = require("./Drawing");
4-
var Picture = (function () {
4+
var Picture = /** @class */ (function () {
55
function Picture() {
66
this.media = null;
77
this.id = Util._uniqueId("Picture");

0 commit comments

Comments
 (0)