Skip to content

Types audit for release#3563

Merged
snowystinger merged 5 commits intomainfrom
types-audit-sept-2022-release
Sep 29, 2022
Merged

Types audit for release#3563
snowystinger merged 5 commits intomainfrom
types-audit-sept-2022-release

Conversation

@snowystinger
Copy link
Copy Markdown
Member

Closes

✅ Pull Request Checklist:

  • Included link to corresponding React Spectrum GitHub Issue.
  • Added/updated unit tests and storybook for this change (for new code or code which already has tests).
  • Filled out test instructions.
  • Updated documentation (if it already exists for this component).
  • Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:

🧢 Your Project:

@snowystinger snowystinger added the small review Easy to review PR label Sep 27, 2022
* Handler that is called after a valid drag is held over the drop target for a period of time.
* @private
**/
// onDropActivate?: (e: DroppableCollectionActivateEvent) => void,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Think you didn't mean to comment this out since you marked it private instead?

Suggested change
// onDropActivate?: (e: DroppableCollectionActivateEvent) => void,
onDropActivate?: (e: DroppableCollectionActivateEvent) => void,

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

which do we prefer?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

k, private gets rid of the TS errors. do we need to stop using this prop internally though? or is it ok to stay?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

IMO we can keep it for now, so long as the other dnd hooks have it marked as private as well (think useDrop needs to hide it as well).

@adobe-bot
Copy link
Copy Markdown

/** Handler that is called after a valid drag is held over the drop target for a period of time. */
/**
* Handler that is called after a valid drag is held over the drop target for a period of time.
* @private
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you do the same in useDrop?

@adobe-bot
Copy link
Copy Markdown

Copy link
Copy Markdown
Member

@LFDanLu LFDanLu left a comment

Choose a reason for hiding this comment

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

LGTM

@adobe-bot
Copy link
Copy Markdown

@adobe-bot
Copy link
Copy Markdown

@snowystinger snowystinger merged commit 151d7e7 into main Sep 29, 2022
@snowystinger snowystinger deleted the types-audit-sept-2022-release branch September 29, 2022 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

small review Easy to review PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants