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 adidahiya committed Jul 27, 2016
1 parent a00915d commit 959e779
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 959e779

Please sign in to comment.