indexOfLine type

This commit is contained in:
Jarred Sumner
2022-12-05 14:11:23 -08:00
parent 84634117a9
commit 159ee8ddfc

View File

@@ -2929,6 +2929,16 @@ declare module "bun" {
* "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2"
*/
export const revision: string;
/**
* Find the index of a newline character in potentially ill-formed UTF-8 text.
*
* This is sort of like readline() except without the IO.
*/
export function indexOfLine(
buffer: ArrayBufferView | ArrayBufferLike,
offset?: number,
): number;
}
type TypedArray =