From 55a4f1fc869e41aca748c63d3018f0448b1606e0 Mon Sep 17 00:00:00 2001 From: pack Date: Sun, 9 Aug 2026 10:37:07 +0000 Subject: first commit --- node_modules/tar/dist/esm/warn-method.d.ts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 node_modules/tar/dist/esm/warn-method.d.ts (limited to 'node_modules/tar/dist/esm/warn-method.d.ts') diff --git a/node_modules/tar/dist/esm/warn-method.d.ts b/node_modules/tar/dist/esm/warn-method.d.ts new file mode 100644 index 0000000..2dd9861 --- /dev/null +++ b/node_modules/tar/dist/esm/warn-method.d.ts @@ -0,0 +1,24 @@ +import { type Minipass } from 'minipass'; +/** has a warn method */ +export type Warner = { + warn(code: string, message: string | Error, data: unknown): void; + file?: string; + cwd?: string; + strict?: boolean; + emit(event: 'warn', code: string, message: string, data?: WarnData): void; + emit(event: 'error', error: TarError): void; +}; +export type WarnEvent = Minipass.Events & { + warn: [code: string, message: string, data: WarnData]; +}; +export type WarnData = { + file?: string; + cwd?: string; + code?: string; + tarCode?: string; + recoverable?: boolean; + [k: string]: unknown; +}; +export type TarError = Error & WarnData; +export declare const warnMethod: (self: Warner, code: string, message: string | Error, data?: WarnData) => void; +//# sourceMappingURL=warn-method.d.ts.map \ No newline at end of file -- cgit v1.2.3