typescript fixes

This commit is contained in:
Anton Lavrenov 2019-05-09 08:28:09 -05:00
parent 4d3f9b23e5
commit 1a23923aee
7 changed files with 13 additions and 6 deletions

1
.gitignore vendored
View File

@ -40,6 +40,7 @@ nbproject
*.sublime-project
*.sublime-workspace
*.md.html
.vscode
# Dreamweaver added files
_notes

View File

@ -5,6 +5,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
## Not released:
## [3.2.6][2019-05-09]
* Typescript fixes again
## [3.2.5][2019-04-17]
* Show a warning when `Konva.Transformer` and attaching node have different parents.

View File

@ -8,7 +8,7 @@
* Konva JavaScript Framework v3.2.5
* http://konvajs.org/
* Licensed under the MIT
* Date: Mon Apr 22 2019
* Date: Thu May 09 2019
*
* Original work Copyright (C) 2011 - 2013 by Eric Rowell (KineticJS)
* Modified work Copyright (C) 2014 - present by Anton Lavrenov (Konva)

2
konva.min.js vendored
View File

@ -3,7 +3,7 @@
* Konva JavaScript Framework v3.2.5
* http://konvajs.org/
* Licensed under the MIT
* Date: Mon Apr 22 2019
* Date: Thu May 09 2019
*
* Original work Copyright (C) 2011 - 2013 by Eric Rowell (KineticJS)
* Modified work Copyright (C) 2014 - present by Anton Lavrenov (Konva)

View File

@ -48,7 +48,7 @@
"rollup-plugin-node-resolve": "^4.0.1",
"rollup-plugin-sourcemaps": "^0.4.2",
"rollup-plugin-typescript2": "^0.20.1",
"typescript": "^3.4.3"
"typescript": "^3.4.5"
},
"keywords": [
"canvas",

View File

@ -13,9 +13,10 @@ import { _registerNode } from './Global';
import { GetSet, Vector2d } from './types';
// hack from here https://stackoverflow.com/questions/52667959/what-is-the-purpose-of-bivariancehack-in-typescript-types/52668133#52668133
export type ShapeConfigHandler<TTarget> = {
bivarianceHack(ctx: Context, shape: TTarget): void
}['bivarianceHack']
bivarianceHack(ctx: Context, shape: TTarget): void;
}['bivarianceHack'];
export interface ShapeConfig extends NodeConfig {
fill?: string;

View File

@ -6,7 +6,8 @@
"noEmitOnError": true,
"lib": ["es2015", "dom"]
// "noImplicitAny": true
// "strict": true
// "strict": true,
// "strictFunctionTypes": true
},
"include": ["./src/*.ts"]
// "include": ["./types/*.ts"]