mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
27 lines
678 B
Plaintext
27 lines
678 B
Plaintext
a.js(1,5): error TS1047: A rest parameter cannot be optional.
|
|
a.js(3,12): error TS2370: A rest parameter must be of an array type.
|
|
a.js(11,21): error TS1005: '}' expected.
|
|
|
|
|
|
==== a.js (3 errors) ====
|
|
/** @param {...*=} args
|
|
~~~~~~~~~~~~~~~~~~~
|
|
@return {*=} */
|
|
~~~~
|
|
!!! error TS1047: A rest parameter cannot be optional.
|
|
function f(...args) {
|
|
~~~~~~~
|
|
!!! error TS2370: A rest parameter must be of an array type.
|
|
return null
|
|
}
|
|
|
|
/** @type *= */
|
|
var x;
|
|
|
|
|
|
/** @param {function():*=} f */
|
|
~
|
|
!!! error TS1005: '}' expected.
|
|
function cbf(f) {
|
|
}
|
|
|