Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

As a developer I want to use d.ts react definitions (instead of n4jsd react definitions) #2438

Open
mmews-n4 opened this issue Oct 10, 2022 · 0 comments
Assignees

Comments

@mmews-n4
Copy link
Contributor

No description provided.

@mmews-n4 mmews-n4 self-assigned this Oct 10, 2022
mmews-n4 added a commit that referenced this issue Jan 16, 2023
…ad of n4jsd react definitions) (#2452)

* special handling for d.ts Readonly<Z> types delegates to Z

* support @types/react elements

* also index d.ts that have errors

* add some more tests

* better support for react exotic component

* better cache for declaration merging info

* support declaration merging for type hierarchy

* add test case

* two more tests and fixes

* fix NPE

* add test, rename tests

* fix another dts import bug

* support relative imports between d.ts files, add test

* support optional return type ref, and relative import specifiers

* minor changes and fixes

* add two tests

* fix test

* down to 1800 errors in OPR again

* support 'typings' in package.json

* fix unintended merging

* improve test expectation

* add test for inheritance of merged elements

* major refactoring of hierarchy traverser to support merged types

* fix test

* fix test

* small adjustments on React test definitions

* fix performance issue with more caching

* improve error message

* some changes

* update react defs for testing

* improve type ref handling for utility and conditional types

* typo

* add tests

* support TypeScript's typeof and infer

* adjust test

* revert/disable some changes wrt using type defs of react.d.ts

* fix libs

* small optimization

* some fixes

* update node version

* small fix in d.ts grammar and transformation

* improve TypeHierarchyTraverser

* improve N4JSCache

* add comment

* organize imports

* java doc

* small fix

* small performance improvement

* add test

* typo

* bump version due to some improved type checks causing incompatibilities
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant