Share Posted November 2, 2022 If a smoother hasn't been initialized, `ScrollSmoother.get()` will return undefined. This should be reflected in the typing of the get function. The return type is currently `ScrollSmoother`, but it should be `ScrollSmoother | undefined` See the Pen bGKpaWO?editors=0011 by RJWadley (@RJWadley) on CodePen Link to comment Share on other sites More sharing options...
Share Posted November 3, 2022 Thanks for pointing that out, @RJWadley. We'll add that in the next release. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now