mirror of
https://git.nolog.cz/NoLog.cz/headline.git
synced 2025-01-31 11:53:35 +01:00
17 lines
371 B
TypeScript
17 lines
371 B
TypeScript
|
/**
|
||
|
* No-op tag function for CSS tagged templates, which works only as a hint for IDE for CSS syntax highlighting.
|
||
|
*/
|
||
|
export function css(
|
||
|
strings: TemplateStringsArray,
|
||
|
...exprs: Array<unknown>
|
||
|
): string {
|
||
|
let result = strings[0];
|
||
|
|
||
|
for (let i = 1, l = strings.length; i < l; i++) {
|
||
|
result += exprs[i - 1];
|
||
|
result += strings[i];
|
||
|
}
|
||
|
|
||
|
return result;
|
||
|
}
|