ab8233c5d3
* Correctly parse JSDoc type *= * Allow `markdown` quoted param names in JSDoc * Add tests and update baselines * Get correct span for the type '*' * Fix whitespace lint * Add unbracketed type test
20 lines
271 B
TypeScript
20 lines
271 B
TypeScript
// @noEmit: true
|
|
// @allowJs: true
|
|
// @checkJs: true
|
|
// @strict: true
|
|
// @Filename: a.js
|
|
|
|
/**
|
|
* @param {string=} `args`
|
|
* @param `bwarg` {?number?}
|
|
*/
|
|
function f(args, bwarg) {
|
|
}
|
|
|
|
// @Filename: ts.ts
|
|
|
|
/**
|
|
* @param `arg` - this is fine
|
|
*/
|
|
function g(arg: string) {
|
|
}
|