Repository: TypeScript
Issue: Assertion call error for property typed via JSDoc qualified name
Labels: Bug

<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨

Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common "Bugs" That Aren't Bugs section!

Please help us by doing the following steps before logging an issue:
  * Search: https://github.com/Microsoft/TypeScript/search?type=Issues
  * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ

Please fill in the *entire* template below.
-->

**TypeScript Version:**  4.2.0-dev.20210101

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:** assertion jsdoc

**Expected behavior:**

No error, assertion call narrows `v`.

**Actual behavior:**

```
Assertions require every name in the call target to be declared with an explicit type annotation.(2775)
input.js(8, 4): 'assert' needs an explicit type annotation.

Assertions require every name in the call target to be declared with an explicit type annotation.(2775)
input.js(3, 4): 'assert' needs an explicit type annotation.
```

`isDeclarationWithExplicitTypeAnnotation` doesn't handle `JSDocParameterTag` and `JSDocPropertyTag`

**Code**
```ts
/**
 * @typedef Foo {object}
 * @property assert {(v: any) => asserts v}
 */

/**
 * @param p {object}
 * @param p.assert {(v: any) => asserts v}
 * @param v {boolean}
 */
function doesntWork(p, v) {
    p.assert(v); // Error here
    v;
}

/**
 * @param p {Foo}
 * @param v {boolean}
 */
function alsoDoesntWork(p, v) {
    p.assert(v); // Error here
    v;
}

/**
 * @param assert {(v: any) => asserts v}
 * @param v {boolean}
 */
function works(assert, v) {
    assert(v);
    v;
}

/**
 * @param p {{assert(v: any): asserts v}}
 * @param v {boolean}
 */
function alsoWorks(p, v) {
    p.assert(v);
    v;
}

```


<details><summary><b>Compiler Options</b></summary>

```json
{
  "compilerOptions": {
    "noImplicitAny": true,
    "strictFunctionTypes": true,
    "strictPropertyInitialization": true,
    "strictBindCallApply": true,
    "noImplicitThis": true,
    "noImplicitReturns": true,
    "alwaysStrict": true,
    "esModuleInterop": true,
    "checkJs": true,
    "allowJs": true,
    "declaration": true,
    "experimentalDecorators": true,
    "emitDecoratorMetadata": true,
    "moduleResolution": 2,
    "target": "ES2017",
    "module": "ESNext"
  }
}
```


</details>

**Playground Link:** [Provided](https://www.typescriptlang.org/play?jsx=0&ts=4.2.0-dev.20210101&useJavaScript=true#code/PQKhFgCgAIWgBALgTwA4FMAm6Bm0BiA9odAN6EBGAVugMaIC+UsCqAToRmytAIYDO-dNzIAKAG4AuPgDtkASmgBeAHx9BwxP2jimMEMChRQEfa15teAW2ioylGvT0t4qC9dsA6AUJGkJ0rxyiqrqvlo6znCu7jbiZBTEADboQVGGkDgArjL0AJaEMtCYhOj8MogA6oRsANaiqAA0OoqkzNAdqN4a3BLyANzQwMDQAKJsHGzQABbC6O0d4v1QesZgzNFuljZ2pESEUebbOgnJqTLpUNm5iAVFvEn8hAAipeVVNfVNLWQLXj6aPqDYZjCY1GZzP5LFZGSAmDZHDwAvwBWQKZRqZERXQImLHeKkRKEFJpDYZa75QrQADun34oixzXErT+WKBUOWkFWcPWZjxHl2pDZUjR8kCPWxDEO-Lip2J50umRylPuj0I1Tq9O+zN+MA6-wl7L1i05eiAA)