@lwc/babel-plugin-component 2.43.0 → 2.45.0

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,6 +1,6 @@
1
+ import { BabelTypes, LwcBabelPluginPass } from '../../types';
1
2
  import { DecoratorMeta } from '../index';
2
- import { BabelTypes } from '../../types';
3
- declare function validate(decorators: DecoratorMeta[]): void;
3
+ declare function validate(decorators: DecoratorMeta[], state: LwcBabelPluginPass): void;
4
4
  declare function transform(t: BabelTypes, decoratorMetas: DecoratorMeta[]): import("@babel/types").ObjectProperty[];
5
5
  declare const _default: {
6
6
  name: string;
@@ -1,2 +1,3 @@
1
+ import { LwcBabelPluginPass } from '../../types';
1
2
  import { DecoratorMeta } from '../index';
2
- export default function validate(decorators: DecoratorMeta[]): void;
3
+ export default function validate(decorators: DecoratorMeta[], state: LwcBabelPluginPass): void;
package/types/utils.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { types } from '@babel/core';
2
2
  import { NodePath } from '@babel/traverse';
3
3
  import { DecoratorErrorOptions, ImportSpecifier } from './decorators/types';
4
+ import { LwcBabelPluginPass } from './types';
4
5
  declare function isClassMethod(classMethod: NodePath<types.Node>, properties?: {
5
6
  kind?: string;
6
7
  name?: string;
@@ -17,5 +18,5 @@ declare function isSetterClassMethod(classMethod: NodePath<types.Node>, properti
17
18
  static?: boolean;
18
19
  }): boolean;
19
20
  declare function getEngineImportSpecifiers(path: NodePath): ImportSpecifier[];
20
- declare function generateError(source: NodePath<types.Node>, { errorInfo, messageArgs }: DecoratorErrorOptions): Error;
21
+ declare function generateError(source: NodePath<types.Node>, { errorInfo, messageArgs }: DecoratorErrorOptions, state: LwcBabelPluginPass): Error;
21
22
  export { isClassMethod, isGetterClassMethod, isSetterClassMethod, generateError, getEngineImportSpecifiers, };