Skip to content

Commit

Permalink
fix: return ParsedTarFileItem type after parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
c0per committed Nov 25, 2024
1 parent c1247bd commit 66bf805
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/parse.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { ParsedTarFileItem, TarFileItem } from "./types";
import type { ParsedTarFileItem } from "./types";

export function parseTar(data: ArrayBuffer | Uint8Array): TarFileItem[] {
export function parseTar(data: ArrayBuffer | Uint8Array): ParsedTarFileItem[] {
const buffer = (data as Uint8Array).buffer || data;

const files: ParsedTarFileItem[] = [];
Expand Down Expand Up @@ -78,7 +78,7 @@ export function parseTar(data: ArrayBuffer | Uint8Array): TarFileItem[] {
export async function parseTarGzip(
data: ArrayBuffer | Uint8Array,
opts: { compression?: CompressionFormat } = {},
): Promise<TarFileItem[]> {
): Promise<ParsedTarFileItem[]> {
const stream = new ReadableStream({
start(controller) {
controller.enqueue(new Uint8Array(data));
Expand Down

0 comments on commit 66bf805

Please sign in to comment.