We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.1.43+76800b049
Darwin 23.6.0 x86_64 i386
import { file } from "bun"; const stats = await file("path/to/file").stat(); console.log(stats);
Bun successfully executes this script however the TypeScript compiler is reporting that the stat method does not exist.
stat
error TS2339: Property 'stat' does not exist on type 'BunFile'.
The bun-types package is updated with the latest features.
A typescript error from the bun-types package
Using latest @types/bun v1.1.16 that's available in NPM which is using bun-types v1.1.43.
@types/bun
bun-types
I see the stat method is defined - https://github.com/oven-sh/bun/blob/main/packages/bun-types/bun.d.ts#L1241C3-L1245C4 - so i'm guessing an updated version of bun-types package just needs to be published.
The text was updated successfully, but these errors were encountered:
Yeah it will be present on next release. You can also install bun-types@canary it you want too.
bun-types@canary
Sorry, something went wrong.
No branches or pull requests
What version of Bun is running?
1.1.43+76800b049
What platform is your computer?
Darwin 23.6.0 x86_64 i386
What steps can reproduce the bug?
Bun successfully executes this script however the TypeScript compiler is reporting that the
stat
method does not exist.What is the expected behavior?
The bun-types package is updated with the latest features.
What do you see instead?
A typescript error from the bun-types package
Additional information
Using latest
@types/bun
v1.1.16 that's available in NPM which is usingbun-types
v1.1.43.I see the
stat
method is defined - https://github.com/oven-sh/bun/blob/main/packages/bun-types/bun.d.ts#L1241C3-L1245C4 - so i'm guessing an updated version ofbun-types
package just needs to be published.The text was updated successfully, but these errors were encountered: