@rollup/browser 4.18.1 → 4.19.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,20 @@
1
- import type { Node as EstreeNode, Program } from 'estree';
1
+ import type * as estree from 'estree';
2
+
3
+ declare module 'estree' {
4
+ export interface Decorator extends estree.BaseNode {
5
+ type: 'Decorator';
6
+ expression: estree.Expression;
7
+ }
8
+ interface PropertyDefinition {
9
+ decorators: estree.Decorator[];
10
+ }
11
+ interface MethodDefinition {
12
+ decorators: estree.Decorator[];
13
+ }
14
+ interface BaseClass {
15
+ decorators: estree.Decorator[];
16
+ }
17
+ }
2
18
 
3
19
  export const VERSION: string;
4
20
 
@@ -996,8 +1012,8 @@ type OmittedEstreeKeys =
996
1012
  | 'comments';
997
1013
  type RollupAstNode<T> = Omit<T, OmittedEstreeKeys> & AstNodeLocation;
998
1014
 
999
- type ProgramNode = RollupAstNode<Program>;
1000
- export type AstNode = RollupAstNode<EstreeNode>;
1015
+ type ProgramNode = RollupAstNode<estree.Program>;
1016
+ export type AstNode = RollupAstNode<estree.Node>;
1001
1017
 
1002
1018
  export function defineConfig(options: RollupOptions): RollupOptions;
1003
1019
  export function defineConfig(options: RollupOptions[]): RollupOptions[];