Try to fix #50 by inserting an "as any"

This commit is contained in:
Patrick Walton 2017-11-17 17:10:05 -08:00
parent 86df78f939
commit 3388b38e3b
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ export class SVGLoader {
let time = 0; let time = 0;
return window.fetch(PARTITION_SVG_PATHS_ENDPOINT_URL, { return window.fetch(PARTITION_SVG_PATHS_ENDPOINT_URL, {
body: JSON.stringify({ paths: paths }), body: JSON.stringify({ paths: paths }),
headers: {'Content-Type': 'application/json'}, headers: {'Content-Type': 'application/json'} as any,
method: 'POST', method: 'POST',
}).then(response => { }).then(response => {
time = parseServerTiming(response.headers); time = parseServerTiming(response.headers);