Files
dns-server/node_modules/postcss-merge-longhand/src/lib/getLastNode.js
T
Alex Yang f627244b8f 更新
2026-03-30 01:04:46 +08:00

8 lines
292 B
JavaScript

'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()
);
};