mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-09 22:40:18 +08:00
restling: Fix incorrect tuple syntax (#22135)
This commit is contained in:
4
types/restling/index.d.ts
vendored
4
types/restling/index.d.ts
vendored
@@ -100,10 +100,10 @@ export function putJson(url: string, data?: any, options?: RestlingOptions): Pro
|
||||
*/
|
||||
export function request(url: string, options?: RestlingOptions): Promise<RestlingResult>;
|
||||
|
||||
export function settleAsync(requests: [{ url: string, options?: RestlingOptions }]): Promise<[RestlingResult]>;
|
||||
export function settleAsync(requests: Array<{ url: string, options?: RestlingOptions }>): Promise<[RestlingResult]>;
|
||||
export function settleAsync(requests: { [key: string]: { url: string, options?: RestlingOptions } }): Promise<{ [key: string]: RestlingResult }>;
|
||||
|
||||
export function allAsync(requests: [{ url: string, options?: RestlingOptions }]): Promise<[RestlingResult]>;
|
||||
export function allAsync(requests: Array<{ url: string, options?: RestlingOptions }>): Promise<[RestlingResult]>;
|
||||
export function allAsync(requests: { [key: string]: { url: string, options?: RestlingOptions } }): Promise<{ [key: string]: RestlingResult }>;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user