-
Notifications
You must be signed in to change notification settings - Fork 159
Open
Description
Describe the bug
- In current setting,
deno checkbehaves as expected,vscode_denodoes not. - doing one of belows make both behave as expected
- add top level
./deno.jsonwith{ "compilerOptions": {} } - remove
./web/deno.json - remove
./web/tsconfig.json
- add top level
To Reproduce
.
├── mod.ts
└── web
├── deno.json `` (empty)
└── tsconfig.json `{ "include": ["../**/*"] }`
class Person {
name = "MyName"
sayName() {
console.log(this.name)
}
}
const me = new Person()
const sayName = me.sayName.bind(me)
sayName("mistake!") // expected errorExpected behavior
- type of
sayNamein./mod.tscorrectly inferred as() => void - thus show error
Expected 0 arguments, but got 1. - type of
.bind():
CallableFunction.bind<() => void>(this: () => void, thisArg: unknown): () => void
Actual behavior
- type of
sayNamein./mod.tsinferred asany - thus doesn't show error
- type of
.bind():
Function.bind(this: Function, thisArg: any, ...argArray: any[]): any
Versions
$ code --version
1.105.0
03c265b1adee71ac88f833e065f7bb956b60550a
x64
$ code --list-extensions --show-versions | grep deno
denoland.vscode-deno@3.45.2
$ deno --version
deno 2.5.4 (stable, release, x86_64-pc-windows-msvc)
v8 14.0.365.5-rusty
typescript 5.9.2
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels