diff --git a/types/node-red/index.d.ts b/types/node-red/index.d.ts index bc58257e2c..0954ad56af 100644 --- a/types/node-red/index.d.ts +++ b/types/node-red/index.d.ts @@ -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. *