diff --git a/jquery-mockjax/jquery-mockjax.d.ts b/jquery-mockjax/jquery-mockjax.d.ts index a3045b503..a86bd856c 100644 --- a/jquery-mockjax/jquery-mockjax.d.ts +++ b/jquery-mockjax/jquery-mockjax.d.ts @@ -5,11 +5,15 @@ /// +interface MockJaxSettingsHeaders { + [key: string]: string; +} + interface MockJaxSettings { url?: string | RegExp; data?: any; type?: string; - headers?: any; + headers?: MockJaxSettingsHeaders; logging?: boolean; status?: number; statusText?: string; @@ -17,7 +21,7 @@ interface MockJaxSettings { isTimeout?: boolean; contentType?: string; response?: (settings: any) => void; - responseText?: string; + responseText?: string | Object; responseXml?: string; proxy?: string; proxyType?: string;