We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51e6eb4 commit 9cd6545Copy full SHA for 9cd6545
src/lib/plugins/retina-images/walker.ts
@@ -39,10 +39,8 @@ function attr(v: unknown): string {
39
40
async function toImgTag(node: Image, options: Options): Promise<HTML> {
41
let size = await imageSize(pathFor(node.url, options));
42
- // @ts-ignore
43
- let width = Math.floor(size.width / 2);
44
45
- let height = Math.floor(size.height / 2);
+ let width = Math.floor(size!.width! / 2);
+ let height = Math.floor(size!.height! / 2);
46
47
let attrs = [];
48
0 commit comments