From bbb26bedd41697bf4b3351c587af9c67559b4403 Mon Sep 17 00:00:00 2001 From: Marek Rozmus Date: Sun, 13 Aug 2023 17:14:36 +0100 Subject: [PATCH] fix(43): Update typings --- src/module.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/module.d.ts b/src/module.d.ts index 004e57e..58bb216 100644 --- a/src/module.d.ts +++ b/src/module.d.ts @@ -172,6 +172,12 @@ interface SwipeableListItemProps { * It can be set for the whole list or for single item. See `type` for `SwipeableList`. Value from the `SwipeableListItem` takes precedence. */ listType?: Type; + /** + * default: 1.0 + * + * Limit the swipe to percent of width, e.g.: 0.5 will make swipe possible only for 50% of elements's width + */ + maxSwipe: number; /** * Fired when item is clicked. */