-
Notifications
You must be signed in to change notification settings - Fork 3
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
WIP: Update to work with solidjs v1.7 and typescript v5 #5
base: main
Are you sure you want to change the base?
Conversation
Trying to integrate this into an app and I'm finding that the types for <animated.div>
<Element />
</animated.div> This gives the following type error: I figure the error could be in this code: export type WithAnimated = ((Component: any) => any) & {
// (Component: AnimatableComponent): any;
[K in keyof JSX.IntrinsicElements]: (
props: AnimatedProps<
Merge<JSX.IntrinsicElements[K], { style?: StyleProps }>
> &
FluidProps<{
scrollTop?: number
scrollLeft?: number
}>,
) => JSX.Element I tried changing Merge<JSX.IntrinsicElements[K], { style?: StyleProps }> |
Thank you so much @garth I forgot I had such a project, do you want to be a maintainer? I can take this project into a new org (for solid-related libraries, like pmndrs) Let me know your opinnion. |
Thanks for the offer, I don't think I understand enough to be a maintainer yet.... you, or someone more experienced with this kind of tech would still need to verify these changes. I'm in the process of moving some performance critical stuff from react to solid (since react 18 it became much harder to manage render lifecycles). Other than this lib, I didn't find any other suitable animation libs for solid. So it would be really great to resurrect it if possible. This PR is still a WIP, probably shouldn't be merged at least until the typing issues are resolved. I'm using the updated version internally via pnpm link. |
There's no issuess with verifying, I think you're able to handle that anyways. Sure, let me know when it's ready. |
Why didn't I see this! |
@Aslemammad any plans on this being merged? |
I'd be happy to assign @garth as a maintainer so this get merged and further work would be done on this repo since I do not maintain it myself anymore. |
I am happy to maintain solid-spring if @garth cannot. |
I couldn't get this lib to work with the lest solid js version, so had a go at fixing the issues.
I added prettier and eslint, fixed a bunch of minor issues and updated typescript, rollup, vite, etc... There are still a lot of eslint issues, but the remaining ones are mostly not important.
The demo app now works with the latest solidjs version and the jsx errors are gone, but not tested with anything bigger yet.
Only issue that I dind't find a fix for and I'm not happy with my workaround was this:
This gives a type error
Type 'State' does not satisfy the constraint 'Lookup<any>'
so I changed to the following just to get it to compiles, but I'm sure it's not correct: