postcss-merge-longhand
Version:
Merge longhand properties into shorthand with PostCSS.
17 lines • 792 B
TypeScript
import type { Container, Declaration } from 'postcss';
import type { PairFamily } from './pairForms.js';
/**
* Reduces the longhand pair of one family within a container into its
* shorthand. Anything the reducer cannot parse leaves the whole family as
* written: a declaration it does not understand could be a fallback or a
* hack, and the shorthand would reorder it.
*
* @param {Container} rule
* @param {PairFamily} family
* @param {Declaration[]} declarations
* @param {[Declaration[], Declaration[]]} lanes - the declarations and `all`
* split by importance
* @return {void}
*/
export declare function reducePairFamily(rule: Container, family: PairFamily, declarations: Declaration[], lanes: [Declaration[], Declaration[]]): void;
//# sourceMappingURL=pairReducer.d.ts.map