Skip to content

Comments

fix(eslint-plugin-react-compiler): add TypeScript type declarations#35856

Open
sleitor wants to merge 1 commit intofacebook:mainfrom
sleitor:fix/eslint-plugin-dts
Open

fix(eslint-plugin-react-compiler): add TypeScript type declarations#35856
sleitor wants to merge 1 commit intofacebook:mainfrom
sleitor:fix/eslint-plugin-dts

Conversation

@sleitor
Copy link

@sleitor sleitor commented Feb 21, 2026

Summary

Add a hand-written index.d.ts to provide TypeScript types for eslint-plugin-react-compiler. This fixes the implicit any type error when importing the plugin with checkJs enabled in tsconfig.json.

The declaration file exports the three public symbols: configs, rules, and meta.

Fixes #31334

Changes

  • Added index.d.ts with type declarations for the plugin's public API
  • Added "types": "index.d.ts" to package.json
  • Added index.d.ts to files array so it's included in npm package

Add a hand-written index.d.ts to provide TypeScript types for
eslint-plugin-react-compiler. This fixes the implicit 'any' type error
when importing the plugin with checkJs enabled in tsconfig.json.

The declaration file exports the three public symbols: configs, rules,
and meta.

Closes facebook#31334
@meta-cla meta-cla bot added the CLA Signed label Feb 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Compiler Bug]: TS types missing for eslint-plugin-react-compiler

1 participant