source: trip-planner-front/node_modules/memfs/lib/encoding.d.ts@ 6a3a178

Last change on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 366 bytes
Line 
1/// <reference types="node" />
2export declare type TDataOut = string | Buffer;
3export declare type TEncodingExtended = BufferEncoding | 'buffer';
4export declare const ENCODING_UTF8: BufferEncoding;
5export declare function assertEncoding(encoding: string | undefined): void;
6export declare function strToEncoding(str: string, encoding?: TEncodingExtended): TDataOut;
Note: See TracBrowser for help on using the repository browser.