Urara-Blog/node_modules/.pnpm-store/v3/files/6f/6ad2316dacb79012383268819c5cfa2a4e9b762c84489bc3594763b5b43eaa119d796bf157b877e33472ae4e5ed0eaeef5fb08b4d9995bd4e0916b6c8f1041
2022-08-14 01:14:53 +08:00

14 lines
382 B
Text

'use strict';
/**
* @param {import('postcss').Rule} rule
* @param {string[]} properties
* @return {import('postcss').Declaration[]}
*/
module.exports = function getDecls(rule, properties) {
return /** @type {import('postcss').Declaration[]} */ (
rule.nodes.filter(
(node) =>
node.type === 'decl' && properties.includes(node.prop.toLowerCase())
)
);
};