I am working with invokeRemote of the @forge/api package. The exported RequestInit type looks as follows:
export interface RequestInit {
body?: ArrayBuffer | string | URLSearchParams;
headers?: Record<string, string>;
method?: string;
redirect?: RequestRedirect;
signal?: AbortSignal;
}
Can someone explain what the idea is behind the body parameter accepting URLSearchParams?