Skip to content

Commit

Permalink
Add missing type for Angular ESLint 13
Browse files Browse the repository at this point in the history
  • Loading branch information
jerone committed Apr 17, 2024
1 parent 8a53769 commit 524e533
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/lib/external/ensure-template-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export function ensureTemplateParser(
context: Readonly<TSESLint.RuleContext<string, ReadonlyArray<unknown>>>,
): void {
try {
// v14.4.0 and higher.
import("@angular-eslint/utils")
.then(({ default: utils }) => {
try {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"compilerOptions": {
"sourceMap": true
},
"include": ["src", "tests"]
"include": ["src", "tests", "./typings.d.ts"]
}
7 changes: 7 additions & 0 deletions typings.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import type { TSESLint } from "@typescript-eslint/utils";

declare module "@angular-eslint/utils" {
export function ensureTemplateParser(
context: Readonly<TSESLint.RuleContext<string, ReadonlyArray<unknown>>>,
): void;
}

0 comments on commit 524e533

Please sign in to comment.