标签: typescript
我碰到了following打字稿,但不确定其确切含义。
export type RequestOptions = RequestInit & { path: string; params: URLSearchParams; headers: Headers; body?: Body; };
这是否意味着RequestOptions可以由RequestInit和对象{ path, params, headers, body }的组合组成?
RequestOptions
RequestInit
{ path, params, headers, body }