Closed dimitropoulos closed 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.
LongPressCallback
LongPressDetectEvents
export * from './types'
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.
use-long-press/dist/types
Thanks for the report, fixed in v2.0.2
that was fast! thanks!
In 1.2.0 some types (e.g.
LongPressCallback
and the enumLongPressDetectEvents
) were exported, but in 2.0.0 they are not. You may just need a line likeexport * 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.