I met an issue that some of the nodeJS module functions are not resolved but others are fine. Here is my step to reproduce this issue:
It's a known bug, please follow WEB-18469 for updates.
As a workaround, please, try downloading passport TypeScript community stubs:
Download..., choose passport from the list