Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Mar 21, 2023
1 parent 9a83be1 commit 229c4ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/typescript-estree/src/convert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3126,7 +3126,7 @@ export class Converter {
for (const modifier of modifiers) {
if (ts.isDecorator(modifier)) {
// `checkGrammarModifiers` function in typescript
if (!nodeCanBeDecorated(node)) {
if (!nodeCanBeDecorated(node as TSNode)) {
if (ts.isMethodDeclaration(node) && !nodeIsPresent(node.body)) {
this.#throwError(

Check warning on line 3131 in packages/typescript-estree/src/convert.ts

View check run for this annotation

Codecov / codecov/patch

packages/typescript-estree/src/convert.ts#L3131

Added line #L3131 was not covered by tests
modifier,
Expand Down
4 changes: 2 additions & 2 deletions packages/typescript-estree/src/node-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -768,12 +768,12 @@ export function getContainingFunction(
}

// `ts.hasAbstractModifier`
function hasAbstractModifier(node: TSNode): boolean {
function hasAbstractModifier(node: ts.Node): boolean {
return hasModifier(SyntaxKind.AbstractKeyword, node);

Check warning on line 772 in packages/typescript-estree/src/node-utils.ts

View check run for this annotation

Codecov / codecov/patch

packages/typescript-estree/src/node-utils.ts#L772

Added line #L772 was not covered by tests
}

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

Check warning on line 777 in packages/typescript-estree/src/node-utils.ts

View check run for this annotation

Codecov / codecov/patch

packages/typescript-estree/src/node-utils.ts#L777

Added line #L777 was not covered by tests
}

Expand Down

0 comments on commit 229c4ce

Please sign in to comment.