Argument of type '{ timeout: number; error: boolean; }' is not assignable to parameter of type 'NotificationOptions'.
Object literal may only specify known properties, and 'error' does not exist in type 'NotificationOptions'.ts(2345)
I might be doing something wrong here, but looks like a contradiction between docs and error message.
this is the line: figma.notify(errorMessage, {timeout: 5000, error: true});
@tank666 yes, this is my line I just edited my question, interesting enough it works without error field, but of course it is not showed in red as an error.
Even more interesting, if I navigate inside the implementation of the notify function I can see:
Did you actually manage to close error message after timeout? For me, it looks like timeout is being ignored for error messages and they need to be closed by the user.