MIRROR: javascript for 馃悳's, a tiny runtime with big ambitions
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at master 30 lines 793 B view raw
1interface BufferStatic { 2 from(data: string | ArrayLike<number>): Uint8Array & BufferMethods; 3 alloc(size: number): Uint8Array & BufferMethods; 4 allocUnsafe(size: number): Uint8Array & BufferMethods; 5} 6 7interface BufferMethods { 8 toString(encoding?: 'utf8' | 'base64' | 'hex'): string; 9 toBase64(): string; 10 write(string: string, offset?: number, length?: number): number; 11} 12 13declare const Buffer: BufferStatic; 14 15declare module 'buffer' { 16 const Buffer: BufferStatic; 17 const constants: { 18 MAX_LENGTH: number; 19 MAX_STRING_LENGTH: number; 20 }; 21 const kMaxLength: number; 22 const kStringMaxLength: number; 23 const INSPECT_MAX_BYTES: number; 24 function atob(data: string): string; 25 function btoa(data: string): string; 26} 27 28declare module 'node:buffer' { 29 export * from 'buffer'; 30}