mirror of
https://git.nolog.cz/NoLog.cz/headline.git
synced 2025-01-31 20:03:34 +01:00
16 lines
371 B
TypeScript
16 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;
|
|
}
|