eslint-plugin-formatjs 8.1.3 → 8.1.4

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.
Files changed (3) hide show
  1. package/index.js +1 -1
  2. package/package.json +3 -3
  3. package/util.d.ts +7 -1
package/index.js CHANGED
@@ -5320,7 +5320,7 @@ var package_exports = /* @__PURE__ */ __exportAll({
5320
5320
  version: () => version$1
5321
5321
  });
5322
5322
  var name$1 = "eslint-plugin-formatjs";
5323
- var version$1 = "8.1.3";
5323
+ var version$1 = "8.1.4";
5324
5324
  var description = "ESLint plugin for formatjs";
5325
5325
  var keywords = [
5326
5326
  "eslint",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-formatjs",
3
- "version": "8.1.3",
3
+ "version": "8.1.4",
4
4
  "description": "ESLint plugin for formatjs",
5
5
  "keywords": [
6
6
  "eslint",
@@ -24,8 +24,8 @@
24
24
  "./util": "./util.js"
25
25
  },
26
26
  "dependencies": {
27
- "@formatjs/icu-messageformat-parser": "3.5.22",
28
- "@formatjs/ts-transformer": "4.5.2",
27
+ "@formatjs/icu-messageformat-parser": "3.5.23",
28
+ "@formatjs/ts-transformer": "4.5.3",
29
29
  "@types/estree-jsx": "1",
30
30
  "@types/picomatch": "4",
31
31
  "@unicode/unicode-17.0.0": "2",
package/util.d.ts CHANGED
@@ -69,10 +69,16 @@ interface Position {
69
69
  /** >= 0 */
70
70
  column: number;
71
71
  }
72
+ interface ProgramBodyMap {
73
+ Directive: Directive;
74
+ ModuleDeclaration: ModuleDeclaration;
75
+ Statement: Statement;
76
+ }
77
+ type ProgramBody = ProgramBodyMap[keyof ProgramBodyMap];
72
78
  interface Program extends BaseNode {
73
79
  type: "Program";
74
80
  sourceType: "script" | "module";
75
- body: Array<Directive | Statement | ModuleDeclaration>;
81
+ body: ProgramBody[];
76
82
  comments?: Comment[] | undefined;
77
83
  }
78
84
  interface Directive extends BaseNode {