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

Function isDeclaration

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

Asserts that a node is a `Declaration`.

(node: Node)

Source from the content-addressed store, hash-verified

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

Callers 1

compareNodesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected