-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Consider exporting FlipParams
interface from "svelte/animate"
#7103
Comments
Exporting the type is a great option if the project is willing to do that and have it be part of public import surface. If you need to work around this and access the type right now, however, I think you could use the TypeScript inference hack to "pull" the option types out of the |
dummdidumm
pushed a commit
that referenced
this issue
Jan 14, 2022
nevilm-lt
pushed a commit
to nevilm-lt/svelte
that referenced
this issue
Mar 14, 2022
nevilm-lt
pushed a commit
to nevilm-lt/svelte
that referenced
this issue
Apr 21, 2022
nevilm-lt
pushed a commit
to nevilm-lt/svelte
that referenced
this issue
Apr 21, 2022
nevilm-lt
pushed a commit
to nevilm-lt/svelte
that referenced
this issue
Apr 22, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
For my use case, I would like to export a prop to customize the
animate:flip
directive.The desired UX is to re-use the
FlipParams
interface for typing the prop. However,FlipParams
is currently not exported fromtypes/runtime/animate/index.d.ts
.My current workaround is to pick properties from the
AnimationConfig
interface:Reproduction
N/A
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: