Fix runtime issues.

This commit is contained in:
Bauke 2022-10-02 23:50:51 +02:00
parent 9b14c67d80
commit 6b1c24855d
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
2 changed files with 3 additions and 4 deletions

View File

@ -1,4 +1,4 @@
export abstract class BaseOperation<P> {
export abstract class BaseOperation<P extends {}> {
public abstract get default(): P;
public parameters: P;

View File

@ -89,7 +89,7 @@ async function main(): Promise<void> {
} else {
const fullOutputFile = path.join(baseDir, outputFile);
if (createInputImage) {
await execa('magick', [
await execa('convert', [
'-size',
`${width}x${height}`,
'xc:white',
@ -116,8 +116,7 @@ async function main(): Promise<void> {
}
console.log(`* Writing ${compressedFile}`);
await execa('magick', [
'convert',
await execa('convert', [
fullOutputFile,
'-quality',
'92',