File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -3,14 +3,14 @@ import pathVisitorPlugin from "./lib/path-visitor";
3
3
import equivPlugin from "./lib/equiv" ;
4
4
import pathPlugin from "./lib/path" ;
5
5
import nodePathPlugin from "./lib/node-path" ;
6
- import { Def , Fork , Plugin } from "./types" ;
6
+ import { Fork , Plugin } from "./types" ;
7
7
8
- export default function ( defs : Def [ ] ) {
8
+ export default function ( plugins : Plugin < any > [ ] ) {
9
9
const fork = createFork ( ) ;
10
10
11
11
const types = fork . use ( typesPlugin ) ;
12
12
13
- defs . forEach ( fork . use ) ;
13
+ plugins . forEach ( fork . use ) ;
14
14
15
15
types . finalize ( ) ;
16
16
Original file line number Diff line number Diff line change @@ -4,6 +4,4 @@ export type Fork = {
4
4
5
5
export type Plugin < T > = ( fork : Fork ) => T ;
6
6
7
- export type Def = Plugin < void > ;
8
-
9
7
export type Omit < T , K > = Pick < T , Exclude < keyof T , K > > ;
You can’t perform that action at this time.
0 commit comments