I saw in Angular's API documentation, it declared HttpRequest's clone() method as such:
clone(update: { headers?: HttpHeaders; reportProgress?: boolean; params?: HttpParams; responseType?: "arraybuffer" | "blob" | "text" | "json"; withCredentials?: boolean; body?: T; method?: string; url?: string; setHeaders?: { ...; }; setParams?: { ...; }; }): HttpRequest
I wonder is "{...;}" construct after "setHeaders?:" property a valid syntax for type declaration in TypeScript, I searched and did not find the spread operator can be used in the type declaration, is this just appears in Angular's documentation only? Thanks.