Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Jul 20, 2024
1 parent 64af3df commit f4831d9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/rollup/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import type { Node as EstreeNode, Program } from 'estree';
import type * as estree from 'estree';

declare module 'estree' {
Expand Down Expand Up @@ -1013,8 +1012,8 @@ type OmittedEstreeKeys =
| 'comments';
type RollupAstNode<T> = Omit<T, OmittedEstreeKeys> & AstNodeLocation;

type ProgramNode = RollupAstNode<Program>;
export type AstNode = RollupAstNode<EstreeNode>;
type ProgramNode = RollupAstNode<estree.Program>;
export type AstNode = RollupAstNode<estree.Node>;

export function defineConfig(options: RollupOptions): RollupOptions;
export function defineConfig(options: RollupOptions[]): RollupOptions[];
Expand Down

0 comments on commit f4831d9

Please sign in to comment.