TypeScript/tests/baselines/reference/stringRawType.js
Eli Barzilay 0454ae4720 Loosen up the first argument type for String.raw
The [String.raw spec](https://tc39.es/ecma262/#sec-string.raw) uses just
the `raw` property of its first argument, which is a useful way of using
it in user-defined tag functions to do the work of interleaving strings
and values as well as converting the values to strings.

Fixes #43609.
2021-05-12 14:13:26 -04:00

7 lines
155 B
TypeScript

//// [stringRawType.ts]
String.raw({ raw: ["foo", "bar", "baz"] }, 1, 2);
//// [stringRawType.js]
String.raw({ raw: ["foo", "bar", "baz"] }, 1, 2);