mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
16 lines
517 B
Plaintext
16 lines
517 B
Plaintext
index.js(5,21): error TS2339: Property 'fn' does not exist on type '{ (...args: any[]): void; readonly name: string; }'.
|
|
|
|
|
|
==== index.js (1 errors) ====
|
|
export function test(fn) {
|
|
const composed = function (...args) { }
|
|
|
|
Object.defineProperty(composed, 'name', {
|
|
value: composed.fn + '_test'
|
|
~~
|
|
!!! error TS2339: Property 'fn' does not exist on type '{ (...args: any[]): void; readonly name: string; }'.
|
|
})
|
|
|
|
return composed
|
|
}
|
|
|