bun-types 1.2.8-canary.20250327T140605 → 1.2.8-canary.20250329T140548
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/bun.d.ts +335 -233
- package/docs/api/fetch.md +1 -1
- package/docs/api/spawn.md +1 -1
- package/docs/api/sql.md +1 -1
- package/docs/cli/publish.md +1 -1
- package/docs/guides/ecosystem/nuxt.md +1 -1
- package/docs/guides/install/add-peer.md +2 -2
- package/docs/guides/install/from-npm-install-to-bun-install.md +1 -1
- package/docs/guides/test/run-tests.md +3 -3
- package/docs/guides/test/snapshot.md +3 -3
- package/docs/guides/test/update-snapshots.md +1 -1
- package/docs/guides/util/version.md +1 -1
- package/docs/installation.md +4 -4
- package/docs/project/contributing.md +10 -0
- package/docs/runtime/debugger.md +3 -3
- package/docs/runtime/nodejs-apis.md +1 -2
- package/docs/test/dom.md +1 -1
- package/ffi.d.ts +8 -1
- package/globals.d.ts +140 -73
- package/html-rewriter.d.ts +2 -0
- package/package.json +1 -1
- package/s3.d.ts +6 -0
- package/sqlite.d.ts +4 -0
- package/test.d.ts +6 -0
package/sqlite.d.ts
CHANGED
|
@@ -58,6 +58,8 @@ declare module "bun:sqlite" {
|
|
|
58
58
|
* ```ts
|
|
59
59
|
* const db = new Database("mydb.sqlite", {readonly: true});
|
|
60
60
|
* ```
|
|
61
|
+
*
|
|
62
|
+
* @category Database
|
|
61
63
|
*/
|
|
62
64
|
constructor(
|
|
63
65
|
filename?: string,
|
|
@@ -567,6 +569,8 @@ declare module "bun:sqlite" {
|
|
|
567
569
|
*
|
|
568
570
|
* This is returned by {@link Database.prepare} and {@link Database.query}.
|
|
569
571
|
*
|
|
572
|
+
* @category Database
|
|
573
|
+
*
|
|
570
574
|
* @example
|
|
571
575
|
* ```ts
|
|
572
576
|
* const stmt = db.prepare("SELECT * FROM foo WHERE bar = ?");
|
package/test.d.ts
CHANGED
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
declare module "bun:test" {
|
|
17
17
|
/**
|
|
18
18
|
* -- Mocks --
|
|
19
|
+
*
|
|
20
|
+
* @category Testing
|
|
19
21
|
*/
|
|
20
22
|
export type Mock<T extends (...args: any[]) => any> = JestMock.Mock<T>;
|
|
21
23
|
|
|
@@ -168,6 +170,8 @@ declare module "bun:test" {
|
|
|
168
170
|
*
|
|
169
171
|
* @param label the label for the tests
|
|
170
172
|
* @param fn the function that defines the tests
|
|
173
|
+
*
|
|
174
|
+
* @category Testing
|
|
171
175
|
*/
|
|
172
176
|
export interface Describe {
|
|
173
177
|
(fn: () => void): void;
|
|
@@ -352,6 +356,8 @@ declare module "bun:test" {
|
|
|
352
356
|
* @param label the label for the test
|
|
353
357
|
* @param fn the test function
|
|
354
358
|
* @param options the test timeout or options
|
|
359
|
+
*
|
|
360
|
+
* @category Testing
|
|
355
361
|
*/
|
|
356
362
|
export interface Test {
|
|
357
363
|
(
|