mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-09-23 01:20:25 +00:00
Merge pull request #25725 from andersea/registerNode-fix
node-red: Support stricter covariant contravariant checks
This commit is contained in:
Vendored
+2
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user