-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug
Description
Information:
- VSCode Version: 1.47.3
- OS Version: Darwin x64 19.4.0
Steps to Reproduce:
- Create a typescript project with enabled live typescript check in vscode.
- Attempt to access typescript function properties
const example = (
callback: (...args: unknown[]) => unknown
): void => {
try {
callback()
} catch (e) {
const raisedError = {
name: callback.name // <- issue here
// ....
}
}
}The following line produces the following error:
name: callback.name // Property 'name' does not exist on type '(...args: unknown[]) => unknown'Despite the fact these properties are accessible in the Function object.
Other information:
- Typescript in my project (
package.json) is "ˆ3.9.7" (which is the latest version as of the day of this issue being posted) - In my
defaultSettings.jsonthetypescript.tsdkis set tonull(so it should use the latest version from package.json if I'm not mistaken)
-
Does this issue occur when all extensions are disabled?: Yes
-
This issue does not occur, if you try to reproduce it on
- Codesandbox.io
- typescriptlang.org/player
- atom (with ts extensions)
-
Link to StackOverflow thread
Metadata
Metadata
Assignees
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug