You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you understand that if a reduced test case is not provided, we will intentionally delay triaging of your ticket?
I understand
Which connector are you using (React/Angular/etc)?
No connector (vanilla JS)
Bug Description
When you look up the TS type of the event object and import EventImpl as a type, because it is not exposed in the package, you end up with an import to @fullcalendar/core/internal. This is problematic because it causes tsc to look inside the package and it is littered with some TS errors which break one's project and there's no way to prevent this with tsconfig exclude ( reference ).
This type is important when designing, for example, a modal that will render event details. It should be importable from @fullcalendar/core along with any other types in the API surface of both the core and React library.
If you are looking for a workaround, what I did was create a file called ts-ignored.ts, added it to tsconfig exclude, and then I imported and then exported the fullcalendar type from there.
The text was updated successfully, but these errors were encountered:
When a developer uses the workaround to import types, I believe it results in the unfortunate consequence that automatic react imports in IDEs are ambiguous and need a select dialog which contains preact and react imports 😖
Reduced Test Case
https://stackblitz.com/edit/github-ebfzwk?file=src%2Findex.jsx
Do you understand that if a reduced test case is not provided, we will intentionally delay triaging of your ticket?
Which connector are you using (React/Angular/etc)?
No connector (vanilla JS)
Bug Description
When you look up the TS type of the event object and import
EventImpl
as a type, because it is not exposed in the package, you end up with an import to@fullcalendar/core/internal
. This is problematic because it causestsc
to look inside the package and it is littered with some TS errors which break one's project and there's no way to prevent this with tsconfig exclude ( reference ).This type is important when designing, for example, a modal that will render event details. It should be importable from
@fullcalendar/core
along with any other types in the API surface of both the core and React library.If you are looking for a workaround, what I did was create a file called
ts-ignored.ts
, added it to tsconfig exclude, and then I imported and then exported the fullcalendar type from there.The text was updated successfully, but these errors were encountered: