Skip to content

Commit

Permalink
Use correct type for tagged string function parameter (palantir#1433)
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 Nina Hartmann committed Aug 31, 2016
1 parent 87cc5ac commit 6ab4298
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 6ab4298

Please sign in to comment.