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

Refine CellInfo type #125351

Merged
merged 1 commit into from
Jun 3, 2021
Merged

Refine CellInfo type #125351

merged 1 commit into from
Jun 3, 2021

Conversation

mjbvz
Copy link
Collaborator

@mjbvz mjbvz commented Jun 2, 2021

For #125269

  • Rename CellInfo - >OutputItem (only internally, we also need to update the published types)
  • Move id into OutputItem
  • Move element out of OutputItem
  • Rename renderCell to renderOutputItem
  • Rename destoryCell to disposeOutputItem (dispose is the term we generally use in our APIs)

For #125269

- Rename `CellInfo` - >`OutputItem` (only internally, we also need to update the published types)
- Move `id` into `OutputItem`
- Move `element` out of `OutputItem`
- Rename `renderCell` to `renderOutputItem`
- Rename `destoryCell` to `disposeOutputItem` (`dispose` is  the term we generally use in our APIs)
@mjbvz mjbvz requested review from jrieken and connor4312 June 2, 2021 23:20
@mjbvz mjbvz self-assigned this Jun 2, 2021
@mjbvz mjbvz added this to the May 2021 milestone Jun 2, 2021
Copy link
Member

@jrieken jrieken left a comment

Choose a reason for hiding this comment

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

Like it much better. Tho, the disposeOutputItem is taking an id and renderOutputItem is having the id on the passed object - that is somewhat asymmetric. Unsure what a more symmetric solution would be.

@mjbvz mjbvz merged commit fd43041 into main Jun 3, 2021
@mjbvz mjbvz deleted the dev/mjbvz/refine-CellInfo branch June 3, 2021 20:01
@mjbvz
Copy link
Collaborator Author

mjbvz commented Jun 3, 2021

Yes the asymmetry is not great. I don't think we can pass in the OutputItem since it has been disposed of. Not sure what the better approach would be though. I don't expect many people to have to use disposeOutputItem

mjbvz added a commit to mjbvz/DefinitelyTyped that referenced this pull request Jun 3, 2021
typescript-bot pushed a commit to DefinitelyTyped/DefinitelyTyped that referenced this pull request Jun 3, 2021
@mjbvz mjbvz mentioned this pull request Jun 3, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Jul 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants