mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
473 B
Plaintext
20 lines
473 B
Plaintext
a.js(5,18): error TS1016: A required parameter cannot follow an optional parameter.
|
|
|
|
|
|
==== a.js (1 errors) ====
|
|
/**
|
|
* @param {string=} `args`
|
|
* @param `bwarg` {?number?}
|
|
*/
|
|
function f(args, bwarg) {
|
|
~~~~~
|
|
!!! error TS1016: A required parameter cannot follow an optional parameter.
|
|
}
|
|
|
|
==== ts.ts (0 errors) ====
|
|
/**
|
|
* @param `arg` - this is fine
|
|
*/
|
|
function g(arg: string) {
|
|
}
|
|
|