From eda505f863ef682bbf924cb45b8c6e79f91ad7c6 Mon Sep 17 00:00:00 2001 From: Anthony Gubler Date: Tue, 27 Jun 2017 19:30:01 +0100 Subject: [PATCH] Upgrade to TS2.4 --- package.json | 2 +- src/Injector.ts | 4 ++-- src/interfaces.d.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index f83eb55a..253c42a4 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "jsdom": "^9.5.0", "sinon": "^1.17.6", "tslint": "^5.2.0", - "typescript": "~2.3.2" + "typescript": "~2.4.1" }, "dependencies": { "maquette": "~2.5.1", diff --git a/src/Injector.ts b/src/Injector.ts index ab3fc033..56727869 100644 --- a/src/Injector.ts +++ b/src/Injector.ts @@ -15,11 +15,11 @@ import { import RegistryHandler from './RegistryHandler'; export interface GetProperties { - (inject: C, properties: P): any; +

(inject: any, properties: P): any; } export interface GetChildren { - (inject: C, children: DNode[]): DNode[]; + (inject: any, children: DNode[]): DNode[]; } /** diff --git a/src/interfaces.d.ts b/src/interfaces.d.ts index 897beac1..816da25c 100644 --- a/src/interfaces.d.ts +++ b/src/interfaces.d.ts @@ -304,7 +304,7 @@ export interface PropertyChangeRecord { } export interface DiffPropertyFunction { - (previousProperty: T, newProperty: any): PropertyChangeRecord; + (previousProperty: any, newProperty: any): PropertyChangeRecord; } export interface DiffPropertyReaction {