From 1da1ecf9cdbc3c2082af8b6b151b9f7c36449ffd Mon Sep 17 00:00:00 2001 From: Norserium Date: Wed, 26 Oct 2022 11:36:20 +0300 Subject: [PATCH] Fix the AbstractCropper typings --- src/components/AbstractCropper.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/AbstractCropper.tsx b/src/components/AbstractCropper.tsx index 7b5a5cc5..2fd97e90 100644 --- a/src/components/AbstractCropper.tsx +++ b/src/components/AbstractCropper.tsx @@ -68,7 +68,7 @@ export interface AbstractCropperRef - extends AbstractCropperHookProps { + extends Omit, 'settings'> { backgroundComponent?: CropperBackgroundComponent; backgroundProps?: ArbitraryProps; backgroundWrapperComponent?: CropperBackgroundWrapperComponent; @@ -85,6 +85,7 @@ export interface AbstractCropperProps boundaryStretchAlgorithm?: BoundaryStretchAlgorithm; boundarySizeAlgorithm?: BoundarySizeAlgorithm; style?: CSSProperties; + settings: CropperStateSettingsProp; } export type AbstractCropperIntrinsicProps = Omit<