Seems that @types/merge-images are slightly outdated (default export e.g.). Wouldn't it make more sense to port them into merge-images directly to keep them updated or rewrite the code to TypeScript then rollup can take care of that using the TypeScript compiler option.