unjs / nanotar

📼 Tiny and fast tar utils for any JavaScript runtime!
MIT License
125 stars 7 forks source link

fix(parse): return ParsedTarFileItem #21

Open bluwy opened 3 weeks ago

bluwy commented 3 weeks ago

The return type of parseTar and parseTarGzip should be using ParsedTarFileItem as that's what being computed in the functions:

https://github.com/unjs/nanotar/blob/c1247bdec97163b487c8ca55003e291dfea755ab/src/parse.ts#L3-L6

https://github.com/unjs/nanotar/blob/c1247bdec97163b487c8ca55003e291dfea755ab/src/parse.ts#L75