Skip to content

Conversation

@rachel-fenichel
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

Part of #5857

Proposed Changes

Changes the id property on i_component to be on the prototype, and then updates things that implement IComponent accordingly.

The IDs were already there--created in the constructors for things that implement IComponent. id was not supposed to be at the top level, since it's not shared between instances of a class.

Also added dispose to IBlockDragger.

Reason for Changes

Fix type errors to convert to typescript

*/
class DragTarget {
/**
* Constructor for DragTarget. It exists to add the id property and should not
Copy link
Contributor

Choose a reason for hiding this comment

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

If this isn't meant to be constructed directly, should it be tagged @abstract?

@rachel-fenichel rachel-fenichel merged commit 172a8ce into RaspberryPiFoundation:develop Apr 22, 2022
@rachel-fenichel rachel-fenichel deleted the component_id branch April 22, 2022 18:22
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.

3 participants