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
Note that this is JS code - there's no type checking being done.
The objects being printed are of type WalkEntry. However, the documentation for WalkEntry only lists the 'path' key as existing an a WalkEntry.
That may just sound like a bug in the documentation, but here is my situation. I'm using a language called civet, which is CoffeeScript-like, but handles TypeScript syntax. Consider the following civet code:
import {expandGlobSync} from'@std/fs/expand-glob'for (const h ofexpandGlobSync('**/*.txt')) {
console.log(h.isFile);
}
When I attempt to type check this file, using the command civet --typecheck temp.civet, I get the following error:
test/temp.civet.tsx:3:16 - error TS2339: Property 'isFile' does not exist on type 'WalkEntry'.
3 console.log(h.isFile);
~~~~~~
I'm certainly not asking for you to support civet, but I can't help believing that you're doing something pretty funky with the WalkEntry type definition for civet to not realize that it includes the keys isFile, isDirectory, isSynlink, and probably name also. Somehow, though, it seems that Deno realizes that those fields are there.
The text was updated successfully, but these errors were encountered:
$ deno --version
deno 2.1.8 (stable, release, x86_64-pc-windows-msvc)
v8 13.0.245.12-rusty
typescript 5.6.2
I have the following code:
which prints out the following (truncated):
Note that this is JS code - there's no type checking being done.
The objects being printed are of type WalkEntry. However, the documentation for WalkEntry only lists the 'path' key as existing an a WalkEntry.
That may just sound like a bug in the documentation, but here is my situation. I'm using a language called civet, which is CoffeeScript-like, but handles TypeScript syntax. Consider the following civet code:
When I attempt to type check this file, using the command
civet --typecheck temp.civet
, I get the following error:I'm certainly not asking for you to support civet, but I can't help believing that you're doing something pretty funky with the WalkEntry type definition for civet to not realize that it includes the keys isFile, isDirectory, isSynlink, and probably name also. Somehow, though, it seems that Deno realizes that those fields are there.
The text was updated successfully, but these errors were encountered: