mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
14 lines
407 B
Plaintext
14 lines
407 B
Plaintext
//// [tests/cases/compiler/arrowExpressionJs.ts] ////
|
|
|
|
=== mytest.js ===
|
|
/**
|
|
* @template T
|
|
* @param {T|undefined} value value or not
|
|
* @returns {T} result value
|
|
*/
|
|
const cloneObjectGood = value => /** @type {T} */({ ...value });
|
|
>cloneObjectGood : Symbol(cloneObjectGood, Decl(mytest.js, 5, 5))
|
|
>value : Symbol(value, Decl(mytest.js, 5, 23))
|
|
>value : Symbol(value, Decl(mytest.js, 5, 23))
|
|
|