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

Export ResourceSourceInputObject, ResourceFunc & ResourceInput #569

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kgilden
Copy link

@kgilden kgilden commented Sep 9, 2020

Makes it easier to type hint resource sources.

It's nice that the resource option is flexible in what it accepts. However, it's not very nice to type hint something as being ResourceSourceInput. Modifying the resource option would require checking whether we're dealing with a function, an object, an array or a string. And that's quite painful. Much easier to just constrain a variable to being one specific type.

Closes fullcalendar/fullcalendar#5797.

…outside

Makes it easier to type hint resource sources.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider exporting ResourceFunc and ResourceInput
1 participant