Adds JS/TS syntax highlighting for JavaScript template literals like tss\
1+1``.
javascript`` | js`` | typescript`` | ts`` | jsx`` | tsx`` | tsg``
const code = ts`
const truthy = (val: any): boolean => !!val;
`;
You are responsible for defining the template literal yourself -- this extension just adds syntax highlighting for it. If you don't need any custom processing, you can use String.raw
:
const ts = String.raw;
// later
ts`1 + 1`;