From e41dcf12be9a34a251ecaec0c7a87b1aa0b9958d Mon Sep 17 00:00:00 2001 From: "Anders E. Andersen" Date: Sat, 12 May 2018 09:47:57 +0200 Subject: [PATCH] Support stricter covariant contravariant checks --- types/node-red/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/node-red/index.d.ts b/types/node-red/index.d.ts index 4c9a1f093a..bc58257e2c 100644 --- a/types/node-red/index.d.ts +++ b/types/node-red/index.d.ts @@ -215,5 +215,6 @@ export interface Nodes { * @param constructor - the constructor function for this node type * @param opts - optional additional options for the node */ - registerType(type: string, constructor: (props: NodeProperties) => any, opts?: any): void; + // tslint:disable-next-line no-unnecessary-generics + registerType(type: string, constructor: (props: T) => any, opts?: any): void; }