Merge pull request #25725 from andersea/registerNode-fix

node-red: Support stricter covariant contravariant checks
This commit is contained in:
Ron Buckton
2018-05-14 16:55:51 -07:00
committed by GitHub
+2 -1
View File
@@ -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<T extends NodeProperties>(type: string, constructor: (props: T) => any, opts?: any): void;
}