You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
functioncontext(target: any,key: string|symbol,index: number){constmethod=target[key];console.log('WHAT IS THIS?',method);// The `method` should not be undefined}constsymbolFunction=Symbol('sym');classX{regularFunc(@contextctx){}asyncasyncFunct(@contextctx){}[symbolFunction](@contextctx): Promise<void>{returnnewPromise((resolve)=>voidresolve());}}
We get an output like:
WHAT IS THIS? [Function: regularFunc]
WHAT IS THIS? [AsyncFunction: asyncFunct]
WHAT IS THIS? undefined
This does not occur on tsc. With tsc (via ts-node), we get:
WHAT IS THIS? [Function: regularFunc]
WHAT IS THIS? [AsyncFunction: asyncFunct]
WHAT IS THIS? [Function: [sym]]
Input code
functioncontext(target: any,key: string|symbol,index: number){constmethod=target[key];console.log('WHAT IS THIS?',method);// The `method` should not be undefined}constsymbolFunction=Symbol('sym');classX{regularFunc(@contextctx){}asyncasyncFunct(@contextctx){}[symbolFunction](@contextctx): Promise<void>{returnnewPromise((resolve)=>voidresolve());}}
Describe the bug
When using a parameter decorator such as:
We get an output like:
This does not occur on
tsc
. Withtsc
(viats-node
), we get:Input code
Config
Playground link
No response
Expected behavior
It should show:
Actual behavior
Version
1.3.3
Additional context
No response
The text was updated successfully, but these errors were encountered: