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

fixed return type for View parameter #1677

Merged
merged 1 commit into from
Jun 8, 2020

Conversation

catruzz
Copy link
Contributor

@catruzz catruzz commented Jun 8, 2020

The types declaration of onRangeChange function are wrong: onRangeChange function always returns also the view parameter (undefined when clicking on next/prev buttons but valued when changing view).
https://codesandbox.io/s/goofy-noether-6kgst

I've already asked for an update also on related typescript library here:
DefinitelyTyped/DefinitelyTyped#45358

Copy link
Owner

@jquense jquense left a comment

Choose a reason for hiding this comment

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

seems like more of a style change? these types are functionally the same no?

@jquense jquense merged commit 62132eb into jquense:master Jun 8, 2020
@catruzz
Copy link
Contributor Author

catruzz commented Jun 8, 2020

seems like more of a style change? these types are functionally the same no?

Well I noticed this error when typescript warned me about the view parameter that is totally missing on the DefinitelyTyped library and decided to better specify the different type here in the src ;)

@jquense
Copy link
Owner

jquense commented Jun 8, 2020

fair, thanks!

@github-actions
Copy link

🎉 This PR is included in version 0.26.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Teal-labs-developer pushed a commit to Teal-labs-developer/react-big-calendar that referenced this pull request Nov 11, 2020
…into react-big-calendar-v0-28-6

* 'master' of https://github.com/jquense/react-big-calendar: (106 commits)
  fix: revert a bug that the height of the column is broken when displayed in IE11 (jquense#1789)" (jquense#1805)
  fix: bug with resize segments not being removed (jquense#1800)
  fix: preserve time on horizontal resizing (jquense#1795)
  Update README.md (jquense#1799)
  fix: enforce `resizable` prop (jquense#1796)
  fix: a bug that the height of the column is broken when displayed in IE11 (jquense#1789)
  Use main Reactiflux invite (jquense#1780)
  fix: item preview inside cell while dragging from outside not working… (jquense#1770)
  fix onKeyPressEvent should not be required (jquense#1767)
  feat: add onKeyPressEvent (jquense#1754)
  chore(deps): bump handlebars from 4.1.2 to 4.7.6 (jquense#1745)
  feat: add resourceId to handleSelectAllDaySlot fns slotInfo (jquense#1735)
  fix: Fix top part of 24hour event in week/day view (jquense#1732)
  intljusticemission renamed to jquense (jquense#1710)
  docs: little documentation clarification (jquense#1700)
  docs: update README.md (jquense#1690)
  feat: starting to hooks to avoid deprecation warnings (jquense#1687)
  docs: fixed return type for View parameter (jquense#1677)
  feat: add dragging ability from the monthly Popup component (jquense#1554)
  fix: hide indicator when current time is not in the interval (jquense#1639)
  ...

# Conflicts:
#	.size-snapshot.json
#	src/Calendar.js
#	yarn.lock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants