naver / egjs-flicking

🎠 ♻️ Everyday 30 million people experience. It's reliable, flexible and extendable carousel.
https://naver.github.io/egjs-flicking/
MIT License
2.78k stars 129 forks source link

I got this Type Error with @egjs/ngx-flicking #760

Closed biondiBagasta closed 1 year ago

biondiBagasta commented 1 year ago

@egjs/component/declaration/types.d.ts

(type parameter) T in type EventTriggerParams<T, K extends EventKey<T>>
Type 'T' does not satisfy the constraint 'EventMap'.ts(2344)
types.d.ts(10, 40): This type parameter might need an `extends EventMap` constraint.

Angular Version: 15

malangfox commented 1 year ago

Hello @biondiBagasta.

We would like to know more about the environment which this error occurs. Are you getting these errors when building your Angular application? Also, we would like to know which version of typescript you are using.

malangfox commented 1 year ago

This seems to happen in our component when using typescript 4.8 or higher. You can temporarily avoid the error by adding "skipLibCheck": true to tsconfig.json. We will leave a comment when a version fixes this issue is released.