Support stricter covariant contravariant checks

This commit is contained in:
Anders E. Andersen
2018-05-12 09:47:57 +02:00
parent a68f617d89
commit e41dcf12be
+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;
}