Skip to content

Commit 414bd1c

Browse files
committed
Fix misused private Def type alias.
1 parent 8accc77 commit 414bd1c

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

fork.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ import pathVisitorPlugin from "./lib/path-visitor";
33
import equivPlugin from "./lib/equiv";
44
import pathPlugin from "./lib/path";
55
import nodePathPlugin from "./lib/node-path";
6-
import { Def, Fork, Plugin } from "./types";
6+
import { Fork, Plugin } from "./types";
77

8-
export default function (defs: Def[]) {
8+
export default function (plugins: Plugin<any>[]) {
99
const fork = createFork();
1010

1111
const types = fork.use(typesPlugin);
1212

13-
defs.forEach(fork.use);
13+
plugins.forEach(fork.use);
1414

1515
types.finalize();
1616

types.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,4 @@ export type Fork = {
44

55
export type Plugin<T> = (fork: Fork) => T;
66

7-
export type Def = Plugin<void>;
8-
97
export type Omit<T, K> = Pick<T, Exclude<keyof T, K>>;

0 commit comments

Comments
 (0)