mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-01 17:10:04 +00:00
Update getNode return type
Update getNode return type, since the 'id' may not map to a valid node. In this case, node-red will return null.
This commit is contained in:
committed by
GitHub
parent
802806bcfe
commit
2bcb843faf
4
types/node-red/index.d.ts
vendored
4
types/node-red/index.d.ts
vendored
@@ -173,9 +173,9 @@ export interface Nodes {
|
||||
* node, this call is used to get access to the running
|
||||
* instance.
|
||||
* @param id - the id of the node.
|
||||
* @return - the node matching the given id.
|
||||
* @return - the node matching the given id, or null if it does not exist.
|
||||
*/
|
||||
getNode(id: NodeId): Node;
|
||||
getNode(id: NodeId): Node | null;
|
||||
/**
|
||||
* Cycle through all node definition objects.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user