From 21e20cc1dc2db48d8c8e6394205960186832e8d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20LES=C3=89N=C3=89CHAL?= Date: Tue, 28 May 2024 15:50:46 +0200 Subject: [PATCH] Fix `mw.util.parseImageUrl` return type The `resizeUrl` method may be missing, in which case the method is specified and `null` --- mw/util.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mw/util.d.ts b/mw/util.d.ts index c672468..0da7208 100644 --- a/mw/util.d.ts +++ b/mw/util.d.ts @@ -31,7 +31,7 @@ interface ResizeableThumbnailUrl { * `Special:Redirect` which is less efficient. Otherwise, it is a direct thumbnail URL. * @returns A thumbnail URL (URL-encoded) with that width. */ - resizeUrl: (w: number) => string | null; + resizeUrl: ((w: number) => string) | null; } declare global {