We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I've seen you have a index.d.ts which, to me, means that your library supports types for TS.
index.d.ts
when using
import WZoom from 'vanilla-js-wheel-zoom' const wzoom = WZoom.create(img, { maxScale: 10, speed: 5 })
the inferred type of wzoom is any
wzoom
any
and when using
import WZoom from 'vanilla-js-wheel-zoom' const wzoom: WZoom = WZoom.create(img, { maxScale: 10, speed: 5 })
I get the error : Cannot use namespace 'WZoom' as a type
Cannot use namespace 'WZoom' as a type
with
import WZoom from 'vanilla-js-wheel-zoom' const wzoom: InstanceType<typeof WZoom> = WZoom.create(img, { maxScale: 10, speed: 5 })
the inferred type of wzoom is still any
I am not sure what is the proper way to do this
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I've seen you have a
index.d.ts
which, to me, means that your library supports types for TS.when using
the inferred type of
wzoom
isany
and when using
I get the error :
Cannot use namespace 'WZoom' as a type
with
the inferred type of
wzoom
is stillany
I am not sure what is the proper way to do this
The text was updated successfully, but these errors were encountered: