From 959e7791fe05a74b5c5d71d02df8665f58448a8d Mon Sep 17 00:00:00 2001 From: Jason Killian Date: Wed, 27 Jul 2016 12:45:37 -0400 Subject: [PATCH] Use correct type for tagged string function parameter (#1433) This allows the code to compile correctly with TS 1.8.x and TS 2.x See https://github.com/Microsoft/TypeScript/pull/9855 also --- src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index 59b73721955..ea4849e9c9c 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -36,7 +36,7 @@ export function objectify(arg: any): any { /** * Removes leading indents from a template string without removing all leading whitespace */ -export function dedent(strings: string[], ...values: string[]) { +export function dedent(strings: TemplateStringsArray, ...values: string[]) { let fullString = strings.reduce((accumulator, str, i) => { return accumulator + values[i - 1] + str; });