Skip to content

Commit

Permalink
mw.Api: accept undefined UnknownParams values
Browse files Browse the repository at this point in the history
Fixes #48
  • Loading branch information
Adrien LESÉNÉCHAL committed Oct 5, 2024
1 parent 12f59c5 commit da1f686
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mw/Api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { TitleLike } from "./Title";
type TypeOrArray<T> = T extends any ? T | T[] : never; // T[] would be a mixed array
type ReplaceValue<T extends U | U[], U, V> = T extends U[] ? V[] : V;

type UnknownApiParams = Record<string, string | string[] | boolean | number | number[]>;
type UnknownApiParams = Record<string, string | number | boolean | string[] | number[] | undefined>;

export type ApiResponse = Record<string, any>; // it will always be a JSON object, the rest is uncertain ...

Expand Down

0 comments on commit da1f686

Please sign in to comment.