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

Commit ec9dcec

Browse files
jkillianadidahiya
authored andcommitted
Use correct type for tagged string function parameter (#1433) (#1439)
This allows the code to compile correctly with TS 1.8.x and TS 2.x See microsoft/TypeScript#9855 also
1 parent 785e7c4 commit ec9dcec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export function objectify(arg: any): any {
3636
/**
3737
* Removes leading indents from a template string without removing all leading whitespace
3838
*/
39-
export function dedent(strings: string[], ...values: string[]) {
39+
export function dedent(strings: TemplateStringsArray, ...values: string[]) {
4040
let fullString = strings.reduce((accumulator, str, i) => {
4141
return accumulator + values[i - 1] + str;
4242
});

0 commit comments

Comments
 (0)