Installation
npm install --save @types/utf-8-validate
Summary
This package contains type definitions for utf-8-validate (https://github.com/websockets/utf-8-validate).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/utf-8-validate.
index.d.ts
/// <reference types="node" />
/**
* Checks whether a buffer contains valid UTF-8.
*
* @param buffer - The buffer to check.
*
* @returns `true` if the buffer contains only correct UTF-8, else `false`.
*/
declare function isValidUTF8(buffer: Buffer): boolean;
export = isValidUTF8;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: @types/node
Credits
These definitions were written by OpportunityLiu.