diff --git a/tsconfig.backend.json b/tsconfig.backend.json index f59d3944e..0fabc7c24 100644 --- a/tsconfig.backend.json +++ b/tsconfig.backend.json @@ -10,6 +10,9 @@ "moduleResolution": "node", /* Code generation */ "outDir": "./out/dist", + "paths": { + "node-targz": ["./typings/node-targz.d.ts"] + }, "typeRoots": ["./typings", "./node_modules/@types"], "types": ["mocha", "chai", "chai-http"], /* Other options */ diff --git a/lib/lib.d.ts b/typings/node-targz.d.ts similarity index 95% rename from lib/lib.d.ts rename to typings/node-targz.d.ts index 44807124b..eb9d9e4f8 100644 --- a/lib/lib.d.ts +++ b/typings/node-targz.d.ts @@ -32,7 +32,7 @@ declare module 'node-targz' { export interface CompressOptions { source: string; - options: PackOptions | undefined; + options?: PackOptions | undefined; level: number | undefined; memLevel: number | undefined; destination: PathLike; @@ -41,7 +41,7 @@ declare module 'node-targz' { export interface DecompressOptions { source: PathLike; destination: string; - options: ExtractOptions | undefined; + options?: ExtractOptions | undefined; } export function compress(options: CompressOptions, cb: Callback): void;