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

Better Types #74

Merged
merged 6 commits into from
Sep 2, 2024
Merged

Better Types #74

merged 6 commits into from
Sep 2, 2024

Conversation

SirMallard
Copy link
Collaborator

@SirMallard SirMallard commented Sep 2, 2024

Better Types

Redesigned the types to create a unique one for each widget containing only the necessary arguments and properties. Added generic type support to State widgets which should make it clearer to use.

This may be inconvenient to have a type for every widget, but it should make Iris easier to use with intellisense which is one of the biggest issues I here of.

Additions

  • State objects and Input widgets use generic types rather than any.
  • PubTypes file for public types which most users only need to be exposed to.
  • WidgetTypes file containing a unique type for every widget.

Changes

  • Removed unnecessary thisWidget arguments to certain utility functions.
  • Fixed child widget naming inconsistencies.

Fixes

  • Fixed Style Window reset not chaning combo boxes.

Sir Mallard and others added 6 commits July 11, 2024 12:01
Merged with main to update. New PubTypes file for those that want it. Removed a lot of unnecessary code and organised files around.
Renamed all ChildAdded and ChildDiscarded arguments to be 'thisChild'.
@SirMallard SirMallard self-assigned this Sep 2, 2024
@SirMallard SirMallard added the enhancement New feature or request label Sep 2, 2024
@SirMallard SirMallard added this to the v2.4.0 milestone Sep 2, 2024
@SirMallard SirMallard merged commit 211d296 into main Sep 2, 2024
2 checks passed
@SirMallard SirMallard deleted the generic-types branch September 2, 2024 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant