From 57d67975c72914c98bcfa5909133364b2acd4dfd Mon Sep 17 00:00:00 2001 From: Andy Date: Tue, 12 Dec 2017 15:53:16 -0800 Subject: [PATCH] restling: Fix incorrect tuple syntax (#22135) --- types/restling/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/restling/index.d.ts b/types/restling/index.d.ts index fc6c75e6cd..79bc2d8c2c 100644 --- a/types/restling/index.d.ts +++ b/types/restling/index.d.ts @@ -100,10 +100,10 @@ export function putJson(url: string, data?: any, options?: RestlingOptions): Pro */ export function request(url: string, options?: RestlingOptions): Promise; -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 }>; /**