The TS definition file for lightning/messageService provides type information for the lightning/messageService. The subscribe function within that file indicates that subscriberOptions is a required parameter. According to the documentation subscriberOptions is an optional parameter.
Steps To Reproduce:
Launch a SFDX project in VSCode with the Salesforce Extension Pack (I'm using ebikes here)
Set the checkJS option to true in the "compilerOptions" object and add "../../../../.sfdx/typings/*/.d.ts" to the "include" array in the jsconfig.json
Navigate to a file that has a subscribe() function from lightning/messageService (productTileList.js in ebikes)
Mouse over the subscribe function, scroll down within the and view the message that indicates a 4th parameter is expected
Summary
The TS definition file for lightning/messageService provides type information for the lightning/messageService. The subscribe function within that file indicates that subscriberOptions is a required parameter. According to the documentation subscriberOptions is an optional parameter.
Steps To Reproduce:
Expected result
Actual result
Additional information
Salesforce Extension Version in VS Code: v57.2.1
SFDX CLI Version: 7.188.1-4a4bb9c
OS and version: Windows 10 19044.2486