bun-types 1.1.31 → 1.1.32-canary.20241020T140528

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.
Files changed (2) hide show
  1. package/bun.d.ts +37 -11
  2. package/package.json +1 -1
package/bun.d.ts CHANGED
@@ -3238,32 +3238,50 @@ declare module "bun" {
3238
3238
  * @example \x1b[38;2;100;200;200m
3239
3239
  */
3240
3240
  | "ansi"
3241
+ | "ansi-16"
3242
+ | "ansi-16m"
3241
3243
  /**
3242
3244
  * 256 color ANSI color string, for use in terminals which don't support true color
3243
3245
  *
3244
3246
  * Tries to match closest 24-bit color to 256 color palette
3245
3247
  */
3246
- | "ansi256"
3248
+ | "ansi-256"
3249
+ /**
3250
+ * Picks the format that produces the shortest output
3251
+ */
3252
+ | "css"
3247
3253
  /**
3248
3254
  * Lowercase hex color string without alpha
3249
- * @example #aabb11
3255
+ * @example #ff9800
3250
3256
  */
3251
3257
  | "hex"
3258
+ /**
3259
+ * Uppercase hex color string without alpha
3260
+ * @example #FF9800
3261
+ */
3262
+ | "HEX"
3263
+ /**
3264
+ * @example hsl(35.764706, 1, 0.5)
3265
+ */
3266
+ | "hsl"
3267
+ /**
3268
+ * @example lab(0.72732764, 33.938198, -25.311619)
3269
+ */
3270
+ | "lab"
3271
+ /**
3272
+ * @example 16750592
3273
+ */
3274
+ | "number"
3252
3275
  /**
3253
3276
  * RGB color string without alpha
3254
- * rgb(100, 200, 200)
3277
+ * @example rgb(255, 152, 0)
3255
3278
  */
3256
3279
  | "rgb"
3257
3280
  /**
3258
3281
  * RGB color string with alpha
3259
- * rgba(100, 200, 200, 0.5)
3282
+ * @example rgba(255, 152, 0, 1)
3260
3283
  */
3261
- | "rgba"
3262
- | "hsl"
3263
- | "lab"
3264
- | "css"
3265
- | "lab"
3266
- | "HEX",
3284
+ | "rgba",
3267
3285
  ): string | null;
3268
3286
 
3269
3287
  function color(
@@ -3356,7 +3374,15 @@ declare module "bun" {
3356
3374
  }
3357
3375
  const unsafe: Unsafe;
3358
3376
 
3359
- type DigestEncoding = "hex" | "base64";
3377
+ type DigestEncoding =
3378
+ | "utf8"
3379
+ | "ucs2"
3380
+ | "utf16le"
3381
+ | "latin1"
3382
+ | "ascii"
3383
+ | "base64"
3384
+ | "base64url"
3385
+ | "hex";
3360
3386
 
3361
3387
  /**
3362
3388
  * Are ANSI colors enabled for stdin and stdout?
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.31",
2
+ "version": "1.1.32-canary.20241020T140528",
3
3
  "name": "bun-types",
4
4
  "license": "MIT",
5
5
  "main": "",