Closed

Description
TypeScript Version: 3.9.0-dev.20200225
Code
a.js
/**
* @typedef MyType
* @property {sting} [x]
*/
/** @param {MyType} p */
export function f(p) {}
b.js
import {f} from "./a.js"
f({ x: 42 })
Expected behavior:
Error at sting
.
Actual behavior:
No error.
There is an error if we call f({ x: 42 })
in a.js
.