@@ -111,7 +111,7 @@ export type Processor<
111111 * * If the plugin sets a parser, then this should be the node type that
112112 * the parser yields.
113113 * * If the plugin sets a compiler, then this should be the result that
114- * the compiler yields (`string`, `Buffer `, or something else).
114+ * the compiler yields (`string`, `Uint8Array `, or something else).
115115 * @param plugin
116116 * Plugin (function) to use.
117117 * Plugins are deduped based on identity: passing a function in twice will
@@ -162,7 +162,7 @@ export type Processor<
162162 * * If the plugin sets a parser, then this should be the node type that
163163 * the parser yields.
164164 * * If the plugin sets a compiler, then this should be the result that
165- * the compiler yields (`string`, `Buffer `, or something else).
165+ * the compiler yields (`string`, `Uint8Array `, or something else).
166166 * @param tuple
167167 * A tuple where the first item is a plugin (function) to use and other
168168 * items are options.
@@ -260,7 +260,7 @@ export type FrozenProcessor<
260260 * @param file
261261 * `VFile` or anything that can be given to `new VFile()`, optional.
262262 * @returns
263- * New content: compiled text (`string` or `Buffer `) or something else.
263+ * New content: compiled text (`string` or `Uint8Array `) or something else.
264264 * This depends on which plugins you use: typically text, but could for
265265 * example be a React node.
266266 */
@@ -347,8 +347,8 @@ export type FrozenProcessor<
347347 *
348348 * The result from the compiler is stored on the file.
349349 * What the result is depends on which plugins you use.
350- * The result is typically text (`string` or `Buffer `), which can be retrieved
351- * with `file.toString()` (or `String(file)`).
350+ * The result is typically text (`string` or `Uint8Array `), which can be
351+ * retrieved with `file.toString()` (or `String(file)`).
352352 * In some cases, such as when using `rehypeReact` to create a React node,
353353 * the result is stored on `file.result`.
354354 *
@@ -375,8 +375,8 @@ export type FrozenProcessor<
375375 *
376376 * The result from the compiler is stored on the file.
377377 * What the result is depends on which plugins you use.
378- * The result is typically text (`string` or `Buffer `), which can be retrieved
379- * with `file.toString()` (or `String(file)`).
378+ * The result is typically text (`string` or `Uint8Array `), which can be
379+ * retrieved with `file.toString()` (or `String(file)`).
380380 * In some cases, such as when using `rehypeReact` to create a React node,
381381 * the result is stored on `file.result`.
382382 *
@@ -399,8 +399,8 @@ export type FrozenProcessor<
399399 *
400400 * The result from the compiler is stored on the file.
401401 * What the result is depends on which plugins you use.
402- * The result is typically text (`string` or `Buffer `), which can be retrieved
403- * with `file.toString()` (or `String(file)`).
402+ * The result is typically text (`string` or `Uint8Array `), which can be
403+ * retrieved with `file.toString()` (or `String(file)`).
404404 * In some cases, such as when using `rehypeReact` to create a React node,
405405 * the result is stored on `file.result`.
406406 *
@@ -502,7 +502,7 @@ export type FrozenProcessor<
502502 * * If the plugin sets a parser, then this should be the node type that
503503 * the parser yields.
504504 * * If the plugin sets a compiler, then this should be the result that
505- * the compiler yields (`string`, `Buffer `, or something else).
505+ * the compiler yields (`string`, `Uint8Array `, or something else).
506506 * @this
507507 * The current processor.
508508 * Plugins can configure the processor by interacting with `this.Parser` or
@@ -580,7 +580,7 @@ export type Preset = {
580580 * * If the plugin sets a parser, then this should be the node type that
581581 * the parser yields.
582582 * * If the plugin sets a compiler, then this should be the result that
583- * the compiler yields (`string`, `Buffer `, or something else).
583+ * the compiler yields (`string`, `Uint8Array `, or something else).
584584 */
585585export type PluginTuple <
586586 PluginParameters extends any [ ] = any [ ] ,
@@ -780,8 +780,8 @@ export class CompilerClass<Tree extends Node = Node, Result = unknown> {
780780 * Compile a tree.
781781 *
782782 * @returns
783- * New content: compiled text (`string` or `Buffer `, for `file.value`) or
784- * something else (for `file.result`).
783+ * New content: compiled text (`string` or `Uint8Array `, for
784+ * `file.value`) or something else (for `file.result`).
785785 */
786786 compile ( ) : Result
787787 }
@@ -811,7 +811,7 @@ export class CompilerClass<Tree extends Node = Node, Result = unknown> {
811811 * @param file
812812 * File associated with `tree`.
813813 * @returns
814- * New content: compiled text (`string` or `Buffer `, for `file.value`) or
814+ * New content: compiled text (`string` or `Uint8Array `, for `file.value`) or
815815 * something else (for `file.result`).
816816 */
817817export type CompilerFunction < Tree extends Node = Node , Result = unknown > = (
0 commit comments