Fix Turbopack module resolution for lzma and restore path imports

This commit is contained in:
openhands committed 2026-08-25 22:19:59 +02:00
1 parent a5044c80d7
commit e06596391e
35 files changed
+392 -333

No files matched your search

+12 -5
View File
@@ -1,7 +1,14 @@
declare module "lzma" {
const lzma: {
decompress(input: Buffer | Uint8Array | number[]): number[];
compress(input: string | Uint8Array | number[], mode?: number): number[];
};
export default lzma;
export const LZMA: any;
export function decompress(
byte_array: any,
on_finish?: (result: any, error: any) => void,
on_progress?: (percent: number) => void,
): any;
export function compress(
string: string | Uint8Array,
mode: number,
on_finish?: (result: any, error: any) => void,
on_progress?: (percent: number) => void,
): any;
}