@ayonli/jsext
Version:
A JavaScript extension package for building strong and modern applications.
46 lines (42 loc) • 1.56 kB
text/typescript
import Tarball, { type TarEntry, type TarTree } from "../archive/Tarball.ts";
import type { TarOptions } from "../archive/tar.ts";
import type { UntarOptions } from "../archive/untar.ts";
import { throwUnsupportedRuntimeError } from "../error.ts";
import type { FileSystemOptions } from "../fs/types.ts";
export * from "../archive/errors.ts";
export { Tarball };
export type { TarEntry, TarOptions, UntarOptions, TarTree };
export function tar(
src: string | FileSystemDirectoryHandle,
dest: string | FileSystemFileHandle,
options?: TarOptions
): Promise<void>;
export function tar(
src: string | FileSystemDirectoryHandle,
options?: FileSystemOptions
): Promise<Tarball>;
export async function tar(
src: string | FileSystemDirectoryHandle,
dest: string | FileSystemFileHandle | TarOptions = {},
options: TarOptions = {}
): Promise<Tarball | void> {
void src, dest, options;
throwUnsupportedRuntimeError();
}
export function untar(
src: string | FileSystemFileHandle | ReadableStream<Uint8Array>,
dest: string | FileSystemDirectoryHandle,
options?: UntarOptions
): Promise<void>;
export function untar(
src: string | FileSystemFileHandle | ReadableStream<Uint8Array>,
options?: TarOptions
): Promise<Tarball>;
export async function untar(
src: string | FileSystemFileHandle | ReadableStream<Uint8Array>,
dest: string | FileSystemDirectoryHandle | TarOptions = {},
options: UntarOptions = {}
): Promise<Tarball | void> {
void src, dest, options;
throwUnsupportedRuntimeError();
}