diff --git a/node-red-types/func.d.ts b/node-red-types/func.d.ts index 2aa1a74..5f15d90 100644 --- a/node-red-types/func.d.ts +++ b/node-red-types/func.d.ts @@ -19,6 +19,7 @@ declare const promisify:typeof import('util').promisify * @property {string} [fill] The fill property can be: red, green, yellow, blue or grey. * @property {string} [shape] The shape property can be: ring or dot. * @property {string} [text] The text to display + * @property {Record} [params] The parameters for translation */ interface NodeStatus { /** The fill property can be: red, green, yellow, blue or grey */ @@ -27,6 +28,8 @@ interface NodeStatus { shape?: string, /** The text to display */ text?: string|boolean|number + /** The parameters for translation */ + params?: Record } declare class node { @@ -46,7 +49,7 @@ declare class node { /** Log an info message to the console (not sent to sidebar)' */ static log(info:string|object); /** Sets the status icon and text underneath the node. - * @param {NodeStatus} status - The status object `{fill, shape, text}` + * @param {NodeStatus} status - The status object `{fill, shape, text, params}` * @see node-red documentation [writing-functions: adding-status](https://nodered.org/docs/user-guide/writing-functions#adding-status) */ static status(status:NodeStatus);