mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
f9db4c30c5
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: jakebailey <[email protected]>
31 lines
599 B
Plaintext
31 lines
599 B
Plaintext
bug.js(23,14): error TS2339: Property 'y' does not exist on type 'object'.
|
|
|
|
|
|
==== bug.js (1 errors) ====
|
|
/**
|
|
* @callback cb
|
|
* @param x.y
|
|
*/
|
|
|
|
/**
|
|
* @callback cb2
|
|
* @param {object} x
|
|
* @param {string} x.y
|
|
*/
|
|
|
|
/**
|
|
* @overload
|
|
* @param {object} x
|
|
* @param {string} x.y
|
|
* @returns {string}
|
|
*/
|
|
/**
|
|
* @param {object} x
|
|
* @returns {string}
|
|
*/
|
|
function foo(x) {
|
|
return x.y;
|
|
~
|
|
!!! error TS2339: Property 'y' does not exist on type 'object'.
|
|
}
|
|
|