dgate 2.1.0

DGate API Gateway - High-performance API gateway with JavaScript module support
Documentation
1
2
3
4
5
6
7
'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()
  );
};