Checks if a node has a specific modifier.
(
node: ts.ClassElement | ts.ParameterDeclaration,
targetKind: ts.SyntaxKind,
)
| 105 | |
| 106 | /** Checks if a node has a specific modifier. */ |
| 107 | private _hasModifier( |
| 108 | node: ts.ClassElement | ts.ParameterDeclaration, |
| 109 | targetKind: ts.SyntaxKind, |
| 110 | ): boolean { |
| 111 | return ts.canHaveModifiers(node) && !!node.modifiers?.some(({kind}) => kind === targetKind); |
| 112 | } |
| 113 | } |
no outgoing calls
no test coverage detected