formacao
This commit is contained in:
+11
-11
@@ -1,10 +1,10 @@
|
||||
import { type Stats } from 'fs';
|
||||
import { Minipass } from 'minipass';
|
||||
import { Header } from './header.js';
|
||||
import { TarOptions, TarOptionsWithAliases } from './options.js';
|
||||
import { ReadEntry } from './read-entry.js';
|
||||
import { EntryTypeName } from './types.js';
|
||||
import { WarnData, Warner, WarnEvent } from './warn-method.js';
|
||||
import type { TarOptions, TarOptionsWithAliases } from './options.js';
|
||||
import type { ReadEntry } from './read-entry.js';
|
||||
import type { EntryTypeName } from './types.js';
|
||||
import type { WarnData, Warner, WarnEvent } from './warn-method.js';
|
||||
declare const PROCESS: unique symbol;
|
||||
declare const FILE: unique symbol;
|
||||
declare const DIRECTORY: unique symbol;
|
||||
@@ -53,10 +53,10 @@ export declare class WriteEntry extends Minipass<Buffer, Minipass.ContiguousData
|
||||
type?: EntryTypeName | 'Unsupported';
|
||||
linkpath?: string;
|
||||
stat?: Stats;
|
||||
onWriteEntry?: (entry: WriteEntry) => any;
|
||||
onWriteEntry?: (entry: WriteEntry) => unknown;
|
||||
constructor(p: string, opt_?: TarOptionsWithAliases);
|
||||
warn(code: string, message: string | Error, data?: WarnData): void;
|
||||
emit(ev: keyof WarnEvent, ...data: any[]): boolean;
|
||||
emit(ev: keyof WarnEvent, ...data: unknown[]): boolean;
|
||||
[LSTAT](): void;
|
||||
[ONLSTAT](stat: Stats): void;
|
||||
[PROCESS](): void | this;
|
||||
@@ -71,9 +71,9 @@ export declare class WriteEntry extends Minipass<Buffer, Minipass.ContiguousData
|
||||
[OPENFILE](): void;
|
||||
[ONOPENFILE](fd: number): void;
|
||||
[READ](): void;
|
||||
[CLOSE](cb?: (er?: null | Error | NodeJS.ErrnoException) => any): void;
|
||||
[CLOSE](cb?: (er?: null | Error | NodeJS.ErrnoException) => unknown): void;
|
||||
[ONREAD](bytesRead: number): void;
|
||||
[AWAITDRAIN](cb: () => any): void;
|
||||
[AWAITDRAIN](cb: () => unknown): void;
|
||||
write(buffer: Buffer | string, cb?: () => void): boolean;
|
||||
write(str: Buffer | string, encoding?: BufferEncoding | null, cb?: () => void): boolean;
|
||||
[ONDRAIN](): void;
|
||||
@@ -84,8 +84,8 @@ export declare class WriteEntrySync extends WriteEntry implements Warner {
|
||||
[SYMLINK](): void;
|
||||
[OPENFILE](): void;
|
||||
[READ](): void;
|
||||
[AWAITDRAIN](cb: () => any): void;
|
||||
[CLOSE](cb?: (er?: null | Error | NodeJS.ErrnoException) => any): void;
|
||||
[AWAITDRAIN](cb: () => unknown): void;
|
||||
[CLOSE](cb?: (er?: null | Error | NodeJS.ErrnoException) => unknown): void;
|
||||
}
|
||||
export declare class WriteEntryTar extends Minipass<Buffer, Buffer | string, WarnEvent> implements Warner {
|
||||
blockLen: number;
|
||||
@@ -114,7 +114,7 @@ export declare class WriteEntryTar extends Minipass<Buffer, Buffer | string, War
|
||||
ctime?: Date;
|
||||
linkpath?: string;
|
||||
size: number;
|
||||
onWriteEntry?: (entry: WriteEntry) => any;
|
||||
onWriteEntry?: (entry: WriteEntry) => unknown;
|
||||
warn(code: string, message: string | Error, data?: WarnData): void;
|
||||
constructor(readEntry: ReadEntry, opt_?: TarOptionsWithAliases);
|
||||
[PREFIX](path: string): string;
|
||||
|
||||
Reference in New Issue
Block a user