Last change
on this file since 188ee53 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
706 bytes
|
Line | |
---|
1 | declare module 'buffer' {
|
---|
2 | export const INSPECT_MAX_BYTES: number;
|
---|
3 | export const kMaxLength: number;
|
---|
4 | export const kStringMaxLength: number;
|
---|
5 | export const constants: {
|
---|
6 | MAX_LENGTH: number;
|
---|
7 | MAX_STRING_LENGTH: number;
|
---|
8 | };
|
---|
9 | const BuffType: typeof Buffer;
|
---|
10 |
|
---|
11 | export type TranscodeEncoding = "ascii" | "utf8" | "utf16le" | "ucs2" | "latin1" | "binary";
|
---|
12 |
|
---|
13 | export function transcode(source: Uint8Array, fromEnc: TranscodeEncoding, toEnc: TranscodeEncoding): Buffer;
|
---|
14 |
|
---|
15 | export const SlowBuffer: {
|
---|
16 | /** @deprecated since v6.0.0, use Buffer.allocUnsafeSlow() */
|
---|
17 | new(size: number): Buffer;
|
---|
18 | prototype: Buffer;
|
---|
19 | };
|
---|
20 |
|
---|
21 | export { BuffType as Buffer };
|
---|
22 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.