(this: MacroContext | void, value: string)
| 31 | } |
| 32 | |
| 33 | export function keyframes(this: MacroContext | void, value: string): string { |
| 34 | let name = generateName(value); |
| 35 | if (this && typeof this.addAsset === 'function') { |
| 36 | this.addAsset({ |
| 37 | type: 'css', |
| 38 | content: `@keyframes ${name} {\n ${value}\n}` |
| 39 | }); |
| 40 | } |
| 41 | return name; |
| 42 | } |
| 43 | |
| 44 | function css(this: MacroContext | void, content: string): string { |
| 45 | let className = generateName(content); |
no test coverage detected