bun-types 1.2.5-canary.20250303T140616 → 1.2.5-canary.20250304T140606

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -3,16 +3,16 @@
3
3
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
4
4
 
5
5
  /// <reference lib="esnext" />
6
- /// <reference types="node" />
7
6
  /// <reference types="ws" />
7
+ /// <reference types="node" />
8
8
 
9
9
  // contributors: uncomment this to detect conflicts with lib.dom.d.ts
10
- //// <reference lib="dom" />
10
+ // /// <reference lib="dom" />
11
11
 
12
- /// <reference path="./globals.d.ts" />
13
12
  /// <reference path="./bun.d.ts" />
14
- /// <reference path="./overrides.d.ts" />
13
+ /// <reference path="./globals.d.ts" />
15
14
  /// <reference path="./fetch.d.ts" />
15
+ /// <reference path="./overrides.d.ts" />
16
16
  /// <reference path="./ffi.d.ts" />
17
17
  /// <reference path="./test.d.ts" />
18
18
  /// <reference path="./html-rewriter.d.ts" />
@@ -21,3 +21,4 @@
21
21
  /// <reference path="./wasm.d.ts" />
22
22
  /// <reference path="./deprecated.d.ts" />
23
23
  /// <reference path="./ambient.d.ts" />
24
+ /// <reference path="./devserver.d.ts" />
package/package.json CHANGED
@@ -1,9 +1,8 @@
1
1
  {
2
- "version": "1.2.5-canary.20250303T140616",
2
+ "version": "1.2.5-canary.20250304T140606",
3
3
  "name": "bun-types",
4
4
  "license": "MIT",
5
- "main": "",
6
- "types": "index.d.ts",
5
+ "types": "./index.d.ts",
7
6
  "description": "Type definitions and documentation for Bun, an incredibly fast JavaScript runtime",
8
7
  "repository": {
9
8
  "type": "git",
@@ -24,7 +23,7 @@
24
23
  },
25
24
  "scripts": {
26
25
  "prebuild": "echo $(pwd)",
27
- "copy-docs": "rm -rf docs && cp -rL ../../docs/ ./docs && find ./docs -type f -name '*.md' -exec sed -i 's/\\$BUN_LATEST_VERSION/'\"${BUN_VERSION#bun-v:-1.0.0}\"'/g' {} +",
26
+ "copy-docs": "rm -rf docs && cp -rL ../../docs/ ./docs && find ./docs -type f -name '*.md' -exec sed -i 's/\\$BUN_LATEST_VERSION/'\"${BUN_VERSION#bun-v}\"'/g' {} +",
28
27
  "build": "bun run copy-docs && bun scripts/build.ts && bun run fmt",
29
28
  "test": "tsc",
30
29
  "fmt": "echo $(which biome) && biome format --write ."
package/test.d.ts CHANGED
@@ -440,6 +440,27 @@ declare module "bun:test" {
440
440
  | ((done: (err?: unknown) => void) => void),
441
441
  options?: number | TestOptions,
442
442
  ): void;
443
+ /**
444
+ * Marks this test as failing.
445
+ *
446
+ * Use `test.failing` when you are writing a test and expecting it to fail.
447
+ * These tests will behave the other way normal tests do. If failing test
448
+ * will throw any errors then it will pass. If it does not throw it will
449
+ * fail.
450
+ *
451
+ * `test.failing` is very similar to {@link test.todo} except that it always
452
+ * runs, regardless of the `--todo` flag.
453
+ *
454
+ * @param label the label for the test
455
+ * @param fn the test function
456
+ * @param options the test timeout or options
457
+ */
458
+ failing(
459
+ label: string,
460
+ fn?:
461
+ | (() => void | Promise<unknown>)
462
+ | ((done: (err?: unknown) => void) => void),
463
+ ): void;
443
464
  /**
444
465
  * Runs this test, if `condition` is true.
445
466
  *