* Register a static utility class like `justify-center`.
(className: string, declarations: ([string, string] | (() => AstNode))[])
| 370 | * Register a static utility class like `justify-center`. |
| 371 | */ |
| 372 | function staticUtility(className: string, declarations: ([string, string] | (() => AstNode))[]) { |
| 373 | utilities.static(className, () => { |
| 374 | return declarations.map((node) => { |
| 375 | return typeof node === class="st">'function' ? node() : decl(node[0], node[1]) |
| 376 | }) |
| 377 | }) |
| 378 | } |
| 379 | |
| 380 | type UtilityDescription = { |
| 381 | supportsNegative?: boolean |
no test coverage detected