Skip to content

Commit

Permalink
Fix mw.util.parseImageUrl return type
Browse files Browse the repository at this point in the history
The `resizeUrl` method may be missing, in which case the method is specified and `null`
  • Loading branch information
Adrien LESÉNÉCHAL committed May 28, 2024
1 parent 83ced94 commit 21e20cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mw/util.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 21e20cc

Please sign in to comment.