blob: 8b54574872c311ef3166cf6e05ae2d177c08ec9f [file] [log] [blame]
'use strict';
/** @type {(rule: import('postcss').AnyNode[], prop: string) => import('postcss').Declaration} */
module.exports = (rule, prop) => {
return /** @type {import('postcss').Declaration} */ (
rule.filter((n) => n.type === 'decl' && n.prop.toLowerCase() === prop).pop()
);
};