Asserts that a node is a `Declaration`.
(node: Node)
| 51 | |
| 52 | /** Asserts that a node is a `Declaration`. */ |
| 53 | function isDeclaration(node: Node): node is Declaration { |
| 54 | return node.type === 'decl'; |
| 55 | } |
| 56 | |
| 57 | /** Asserts that a node is a `Rule`. */ |
| 58 | function isRule(node: Node): node is Rule { |