minwork / use-long-press

React hook for detecting click (or tap) and hold event
MIT License
122 stars 12 forks source link

types are not exported #32

Closed dimitropoulos closed 2 years ago

dimitropoulos commented 2 years ago

In 1.2.0 some types (e.g. LongPressCallback and the enum LongPressDetectEvents) were exported, but in 2.0.0 they are not. You may just need a line like export * from './types' in https://github.com/minwork/use-long-press/blob/master/src/index.ts#L15.

I tried importing those types from use-long-press/dist/types but that didn't work with esbuild since it's not an export in your package.json.

minwork commented 2 years ago

Thanks for the report, fixed in v2.0.2

dimitropoulos commented 2 years ago

that was fast! thanks!