From 119125f7f1e43a8a034a43d4f59f3bed688e8586 Mon Sep 17 00:00:00 2001 From: Patrick Rodgers Date: Fri, 13 Jan 2017 10:55:10 -0500 Subject: [PATCH] fixing typing issues when working with RC0 --- debug/debug.ts | 2 +- src/net/httpclient.ts | 2 +- src/net/sprequestexecutorclient.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/debug/debug.ts b/debug/debug.ts index 57683741..a44028aa 100644 --- a/debug/debug.ts +++ b/debug/debug.ts @@ -28,7 +28,7 @@ Logger.activeLogLevel = LogLevel.Verbose; // add your debugging imports here and prior to submitting a PR git checkout debug/debug.ts // will allow you to keep all your debugging files locally // comment out the example -import { Example } from "./any"; +import { Example } from "./example"; Example(); // you can also set break points inside the src folder to examine how things are working diff --git a/src/net/httpclient.ts b/src/net/httpclient.ts index 32158307..cff8af4b 100644 --- a/src/net/httpclient.ts +++ b/src/net/httpclient.ts @@ -5,7 +5,7 @@ import { APIUrlException } from "../utils/exceptions"; export interface FetchOptions { method?: string; - headers?: HeadersInit | { [index: string]: string }; + headers?: string[][] | { [key: string]: string }; body?: BodyInit; mode?: string | RequestMode; credentials?: string | RequestCredentials; diff --git a/src/net/sprequestexecutorclient.ts b/src/net/sprequestexecutorclient.ts index 770c420f..355cf7ee 100644 --- a/src/net/sprequestexecutorclient.ts +++ b/src/net/sprequestexecutorclient.ts @@ -21,7 +21,7 @@ export class SPRequestExecutorClient implements HttpClientImpl { temp: IteratorResult<[string, string]>; if (options.headers && options.headers instanceof Headers) { - iterator = options.headers.entries(); + iterator = >options.headers.entries(); temp = iterator.next(); while (!temp.done) { headers[temp.value[0]] = temp.value[1];