securityos/node_modules/memfs/lib/encoding.d.ts

8 lines
468 B
TypeScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
/// <reference types="node" />
export declare type TDataOut = string | Buffer;
export declare type TEncoding = 'ascii' | 'utf8' | 'utf16le' | 'ucs2' | 'base64' | 'latin1' | 'binary' | 'hex';
export declare type TEncodingExtended = TEncoding | 'buffer';
export declare const ENCODING_UTF8: TEncoding;
export declare function assertEncoding(encoding: string | undefined): void;
export declare function strToEncoding(str: string, encoding?: TEncodingExtended): TDataOut;