File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ import ts from "typescript";
77import * as docGen from "react-docgen-typescript" ;
88import { matcher } from "micromatch" ;
99
10+ // eslint-disable-next-line
11+ // @ts -ignore: What's the right way to refer to this one?
12+ import JavascriptParser from "webpack/lib/javascript/JavascriptParser.js" ;
13+
1014import { LoaderOptions } from "./types" ;
1115import DocGenDependency from "./dependency" ;
1216import {
@@ -94,9 +98,7 @@ export default class DocgenPlugin implements WebpackPluginInstance {
9498 new DocGenDependency . Template ( )
9599 ) ;
96100
97- // eslint-disable-next-line
98- // @ts -ignore: TODO: What's the type of a parser?
99- const handler = ( parser ) => {
101+ const handler = ( parser : JavascriptParser ) => {
100102 parser . hooks . program . tap ( pluginName , ( ) => {
101103 // eslint-disable-next-line
102104 // @ts -ignore
You can’t perform that action at this time.
0 commit comments