Skip to content

Commit 49d25f9

Browse files
committed
chore(compat-eslint): track vendored code-path-analyzer.d.ts
The global `*.d.ts` ignore was hiding the hand-written declaration for the vendored CPA module — sibling `.js` files already had a negation rule, the `.d.ts` was missed.
1 parent 59811bd commit 49d25f9

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ node_modules
66
packages/*/index.js
77
packages/*/lib/**/*.js
88
!packages/compat-eslint/lib/code-path-analysis/*.js
9+
!packages/compat-eslint/lib/code-path-analysis/*.d.ts
910
packages/*/test/**/*.js
1011
.tsslint/
1112
packages/compat-eslint/test/upstream-shim.js
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
declare class CodePathAnalyzer {
2+
constructor(eventGenerator: {
3+
emit?: (name: string, args: unknown[]) => void;
4+
emitter?: { emit(name: string, ...args: unknown[]): void };
5+
enterNode(node: unknown): void;
6+
leaveNode(node: unknown): void;
7+
});
8+
enterNode(node: unknown): void;
9+
leaveNode(node: unknown): void;
10+
}
11+
12+
export = CodePathAnalyzer;

0 commit comments

Comments
 (0)