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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(types): better readability, intellisense improvements, small fixes #2838

Merged
merged 9 commits into from Jun 26, 2023

Conversation

prudho
Copy link
Contributor

@prudho prudho commented Jun 26, 2023

Description

This PR adds small improvements as well as a few quickfixes to the first types iteration:

  • Some properties and behaviors where missing for calendar, api, modal, search and toast.
  • The DefititelyTyped link has been removed from index.d.ts.

I've also rewritten modules definitions to be more readable, extensible, and to get rid of this awful _Impl interface system (new versions of Typescript are way more flexible for that). As the cherry on the top, Intellisense seems to better undertstand definitions and autocompletion works better than before 馃帀

Screenshot

Before:

Overload issues !
image

Intellisense not working very well...
image

After:

Type checking working for each property, even nested !
image

Intellisense is happy !
image

@prudho prudho added lang/javascript Anything involving JavaScript type/discussion Anything which is up for discussion state/awaiting-reviews Pull requests which are waiting for reviews labels Jun 26, 2023
@prudho prudho requested a review from a team June 26, 2023 08:12
Copy link
Member

@lubber-de lubber-de left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lubber-de lubber-de added this to the 2.9.3 milestone Jun 26, 2023
@lubber-de lubber-de changed the title [Types] Better readability, Intellisense improvements, small fixes feat(types): better readability, intellisense improvements, small fixes Jun 26, 2023
@lubber-de lubber-de merged commit 40a7aee into fomantic:develop Jun 26, 2023
8 checks passed
@lubber-de lubber-de removed the state/awaiting-reviews Pull requests which are waiting for reviews label Jun 26, 2023
@prudho prudho deleted the types-quickfixes branch June 27, 2023 06:12
@lubber-de lubber-de added the type/types Anything related to types label Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang/javascript Anything involving JavaScript type/discussion Anything which is up for discussion type/types Anything related to types
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants