Skip to content

Export ResourceSourceInputObject, ResourceFunc & ResourceInput#569

Open
kgilden wants to merge 1 commit into
fullcalendar:mainfrom
kgilden:kg/5797
Open

Export ResourceSourceInputObject, ResourceFunc & ResourceInput#569
kgilden wants to merge 1 commit into
fullcalendar:mainfrom
kgilden:kg/5797

Conversation

@kgilden

@kgilden kgilden commented Sep 9, 2020

Copy link
Copy Markdown

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