MCPcopy Create free account
hub / github.com/angular/components / isRule

Function isRule

tools/postcss/compare-nodes.ts:58–60  ·  view source on GitHub ↗

Asserts that a node is a `Rule`.

(node: Node)

Source from the content-addressed store, hash-verified

56
57/** Asserts that a node is a `Rule`. */
58function isRule(node: Node): node is Rule {
59 return node.type === 'rule';
60}
61
62/** Asserts that a node is a `Comment`. */
63function isComment(node: Node): node is Comment {

Callers 1

compareNodesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected