From da1f6861ffe16635dd617b367de6cc31f3b18e1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20LES=C3=89N=C3=89CHAL?= Date: Sat, 5 Oct 2024 10:26:06 +0200 Subject: [PATCH] mw.Api: accept undefined UnknownParams values Fixes #48 --- mw/Api.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mw/Api.d.ts b/mw/Api.d.ts index a945e65..daf246e 100644 --- a/mw/Api.d.ts +++ b/mw/Api.d.ts @@ -14,7 +14,7 @@ import { TitleLike } from "./Title"; type TypeOrArray = T extends any ? T | T[] : never; // T[] would be a mixed array type ReplaceValue = T extends U[] ? V[] : V; -type UnknownApiParams = Record; +type UnknownApiParams = Record; export type ApiResponse = Record; // it will always be a JSON object, the rest is uncertain ...