aboutsummaryrefslogtreecommitdiff
path: root/packages/bun-types/buffer.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/bun-types/buffer.d.ts')
-rw-r--r--packages/bun-types/buffer.d.ts46
1 files changed, 23 insertions, 23 deletions
diff --git a/packages/bun-types/buffer.d.ts b/packages/bun-types/buffer.d.ts
index fd7201677..6b9cc78c1 100644
--- a/packages/bun-types/buffer.d.ts
+++ b/packages/bun-types/buffer.d.ts
@@ -2084,31 +2084,31 @@ declare module "buffer" {
values(): IterableIterator<number>;
}
var Buffer: BufferConstructor;
+ }
- /**
- * This function returns `true` if `input` contains only valid UTF-8-encoded data,
- * including the case in which `input` is empty.
- *
- * Throws if the `input` is a detached array buffer.
- * @since Bun v0.6.13
- * @param input The input to validate.
- */
- export function isUtf8(
- input: TypedArray | ArrayBufferLike | DataView,
- ): boolean;
+ /**
+ * This function returns `true` if `input` contains only valid UTF-8-encoded data,
+ * including the case in which `input` is empty.
+ *
+ * Throws if the `input` is a detached array buffer.
+ * @since Bun v0.6.13
+ * @param input The input to validate.
+ */
+ export function isUtf8(
+ input: TypedArray | ArrayBufferLike | DataView,
+ ): boolean;
- /**
- * This function returns `true` if `input` contains only valid ASCII-encoded data,
- * including the case in which `input` is empty.
- *
- * Throws if the `input` is a detached array buffer.
- * @since Bun v0.6.13
- * @param input The input to validate.
- */
- export function isAscii(
- input: TypedArray | ArrayBufferLike | DataView,
- ): boolean;
- }
+ /**
+ * This function returns `true` if `input` contains only valid ASCII-encoded data,
+ * including the case in which `input` is empty.
+ *
+ * Throws if the `input` is a detached array buffer.
+ * @since Bun v0.6.13
+ * @param input The input to validate.
+ */
+ export function isAscii(
+ input: TypedArray | ArrayBufferLike | DataView,
+ ): boolean;
}
declare module "node:buffer" {
export * from "buffer";