Skip to content

Commit

Permalink
Use ts.hasAmbientModifier
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Apr 19, 2023
1 parent aea5e0d commit 04e3b73
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/typescript-estree/src/node-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -770,11 +770,6 @@ function hasAbstractModifier(node: ts.Node): boolean {
return hasModifier(SyntaxKind.AbstractKeyword, node);
}

// `ts.hasAmbientModifier`
function hasAmbientModifier(_node: ts.Node): boolean {
return false;
}

// `ts.getThisParameter`
function getThisParameter(
signature: ts.SignatureDeclaration,
Expand Down Expand Up @@ -815,7 +810,7 @@ export function nodeCanBeDecorated(node: TSNode): boolean {
if (
ts.isClassLike(parent) &&
!hasAbstractModifier(node) &&
!hasAmbientModifier(node)
!ts.hasAmbientModifier(node)
) {
return true;
}
Expand Down

0 comments on commit 04e3b73

Please sign in to comment.