Skip to content
New issue

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

Types for bun-types changed #88

Open
marvinside opened this issue Apr 15, 2024 · 2 comments
Open

Types for bun-types changed #88

marvinside opened this issue Apr 15, 2024 · 2 comments

Comments

@marvinside
Copy link

bun-types changed the Structure of their types.

Last working Version: bun-types@1.0.25
Broken Version: bun-types@1.0.26 and all further versions.

The types are now split into multiple files, there is now a index.d.ts file with the following content:

// Project: https://github.com/oven-sh/bun
// Definitions by: Jarred Sumner <https://github.com/Jarred-Sumner>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <reference lib="esnext" />
/// <reference types="node" />
/// <reference types="ws" />

// contributors: uncomment this to detect conflicts with lib.dom.d.ts
/// <reference lib="dom" />

/// <reference path="./globals.d.ts" />
/// <reference path="./bun.d.ts" />
/// <reference path="./ffi.d.ts" />
/// <reference path="./test.d.ts" />
/// <reference path="./html-rewriter.d.ts" />
/// <reference path="./jsc.d.ts" />
/// <reference path="./sqlite.d.ts" />
/// <reference path="./wasm.d.ts" />
/// <reference path="./deprecated.d.ts" />
@vitch
Copy link

vitch commented May 15, 2024

This is blocking me from being able to use this project so I might try to take a look into it if no-one else is?

Checked out the repo and see a yarn.lock with yarn lockfile v1 - anyone know what version of yarn is preferred to develop it?

@vitch
Copy link

vitch commented May 15, 2024

Although for now I'm working around it without this plugin by manually including the bun: imports I'm using:

{
  // within eslintrc.js
  "settings": {
    "import/core-modules": ["bun:test"],
  },
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants