Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Commit

Permalink
Use correct type for tagged string function parameter (#1433) (#1439)
Browse files Browse the repository at this point in the history
This allows the code to compile correctly with TS 1.8.x and TS 2.x

See microsoft/TypeScript#9855 also
  • Loading branch information
jkillian authored and adidahiya committed Jul 27, 2016
1 parent 785e7c4 commit ec9dcec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
Expand Down

0 comments on commit ec9dcec

Please sign in to comment.