-
-
Notifications
You must be signed in to change notification settings - Fork 648
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
Types don't support activeTour or Evented properties. #504
Comments
@mfallihee where are you using |
@rwwagner90 This is the snippet generating the errors:
I am not explicitly using "typeof Shepherd" anywhere but that is the resulting type of the import when you reference Shepherd as a value. If I do what you are suggesting like so and explicitly cast to "Shepherd" using it as a type, it does work:
However, this seems far from ideal and not what was intended. |
@mfallihee the |
@rwwagner90 That sounds good to me. I'm indifferent to the Shepherd.Evented one since I was not actually using it. |
I have a very simple test with the current version 4.6.0:
This will result in two errors on [email protected]
Additionally the current types will let few things will compile which should not:
It looks to me that these errors are mostly related to this recent commit 9466a97
My suggestion for a fix that restores the documented behavior:
This also requires adding an empty namespace to evented.d.ts.
Unfortunately I could not find any way to get the desired result without duplicating the Evented interface which seems to be related to this limitation in Typescript: #18163.
The text was updated successfully, but these errors were encountered: