Skip to content

Commit

Permalink
fix(visitors): fallback type args to any
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Jul 5, 2023
1 parent 29b2e55 commit c3149ba
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/compiler/interfaces/readonly-visitor.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,9 @@ export type DeepPluginMeta =
export interface ReadonlyVisitor {
key: string;
typeImports: Record<string, string>;
visit<Program = ts.Program, SourceFile = ts.SourceFile>(
visit<Program = any, SourceFile = any>(
program: Program,
sf: SourceFile,
): void;
collect<MetaTuple = [ts.CallExpression, DeepPluginMeta]>(): Record<
string,
Array<MetaTuple>
>;
collect<MetaTuple = any>(): Record<string, Array<MetaTuple>>;
}

0 comments on commit c3149ba

Please sign in to comment.