bun-types 1.0.24 → 1.0.25
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/package.json +1 -1
- package/types.d.ts +27 -5
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for bun 1.0.
|
|
1
|
+
// Type definitions for bun 1.0.25
|
|
2
2
|
// Project: https://github.com/oven-sh/bun
|
|
3
3
|
// Definitions by: Jarred Sumner <https://github.com/Jarred-Sumner>
|
|
4
4
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
@@ -4888,11 +4888,8 @@ declare module "bun:sqlite" {
|
|
|
4888
4888
|
/**
|
|
4889
4889
|
* Errors from SQLite have a name `SQLiteError`.
|
|
4890
4890
|
*
|
|
4891
|
-
* This class does not exist! It is not a class. It is just a type.
|
|
4892
|
-
*
|
|
4893
|
-
* To check if an `Error` is an SQLiteError, use `error.name === "SQLiteError"`
|
|
4894
4891
|
*/
|
|
4895
|
-
export
|
|
4892
|
+
export class SQLiteError extends Error {
|
|
4896
4893
|
readonly name: "SQLiteError";
|
|
4897
4894
|
|
|
4898
4895
|
/**
|
|
@@ -9427,6 +9424,31 @@ declare module "bun" {
|
|
|
9427
9424
|
"ignore" | "inherit" | null | undefined
|
|
9428
9425
|
>;
|
|
9429
9426
|
|
|
9427
|
+
// Blocked on https://github.com/oven-sh/bun/issues/8329
|
|
9428
|
+
// /**
|
|
9429
|
+
// *
|
|
9430
|
+
// * Count the visible width of a string, as it would be displayed in a terminal.
|
|
9431
|
+
// *
|
|
9432
|
+
// * By default, strips ANSI escape codes before measuring the string. This is
|
|
9433
|
+
// * because ANSI escape codes are not visible characters. If passed a non-string,
|
|
9434
|
+
// * it will return 0.
|
|
9435
|
+
// *
|
|
9436
|
+
// * @param str The string to measure
|
|
9437
|
+
// * @param options
|
|
9438
|
+
// */
|
|
9439
|
+
// function stringWidth(
|
|
9440
|
+
// str: string,
|
|
9441
|
+
// options?: {
|
|
9442
|
+
// /**
|
|
9443
|
+
// * Whether to include ANSI escape codes in the width calculation
|
|
9444
|
+
// *
|
|
9445
|
+
// * Slightly faster if set to `false`, but less accurate if the string contains ANSI escape codes.
|
|
9446
|
+
// * @default false
|
|
9447
|
+
// */
|
|
9448
|
+
// countAnsiEscapeCodes?: boolean;
|
|
9449
|
+
// },
|
|
9450
|
+
// ): number;
|
|
9451
|
+
|
|
9430
9452
|
class FileSystemRouter {
|
|
9431
9453
|
/**
|
|
9432
9454
|
* Create a new {@link FileSystemRouter}.
|