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

feat: add types for accessing icons. #7132

Merged
merged 2 commits into from
Jun 13, 2023

Conversation

BeksOmega
Copy link
Collaborator

The basics

  • I branched from develop
  • My pull request is against develop
  • My code follows the style guide
  • I ran npm run format and npm run lint

The details

Resolves

Fixes #7126

Proposed Changes

Has getIcons and other relevant methods use an generic IconType<T> class to reference/retrieve icons so that we return icons of the correct type.

Reason for Changes

Make typescript happy :D

Test Coverage

Fixed tests.

Documentation

N/A

Additional Information

N/A

@BeksOmega BeksOmega requested a review from a team as a code owner June 5, 2023 15:39
@BeksOmega BeksOmega requested a review from maribethb June 5, 2023 15:39
@github-actions github-actions bot added the PR: feature Adds a feature label Jun 5, 2023
@BeksOmega BeksOmega mentioned this pull request Jun 9, 2023
4 tasks
core/block.ts Outdated Show resolved Hide resolved
core/interfaces/i_icon.ts Outdated Show resolved Hide resolved
core/serialization/blocks.ts Outdated Show resolved Hide resolved
core/xml.ts Outdated Show resolved Hide resolved
@BeksOmega BeksOmega merged commit 0cfd388 into google:develop Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: feature Adds a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Have getIcons take in a generic Type type that allows it to return a specific icon type
2 participants