Closed jlawrence124 closed 1 year ago
Hey @jlawrence124 thanks for the quick report & fix on this! I've run through the QA on it, and just need someone on my team to confirm and we'll be good to go. #547 will close this and the open issue once that's merged in. Cheers!
Thanks so much @randi274, appreciate your quick review as well!
What does this PR do?
This PR changes the subscriberOptions parameter in lightning/messageService to be optional. It also fixes the JSDocs to use the optional parameter format.
JSDocs: https://jsdoc.app/tags-param.html#optional-parameters-and-default-values
What issues does this PR fix or reference?
This PR fixes type annotation suggestions in VSCode for the subscribe function of lightning/messageService. This will bring the code in line with the Salesforce documentation.
Issue here: https://github.com/forcedotcom/lightning-language-server/issues/545