Skip to content

Commit

Permalink
Fix the AbstractCropper typings
Browse files Browse the repository at this point in the history
  • Loading branch information
Norserium committed Oct 26, 2022
1 parent 71e6f47 commit 1da1ecf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/AbstractCropper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export interface AbstractCropperRef<Settings extends AbstractCropperSettings = A
}

export interface AbstractCropperProps<Settings extends AbstractCropperSettings>
extends AbstractCropperHookProps<Settings> {
extends Omit<AbstractCropperHookProps<Settings>, 'settings'> {
backgroundComponent?: CropperBackgroundComponent;
backgroundProps?: ArbitraryProps;
backgroundWrapperComponent?: CropperBackgroundWrapperComponent;
Expand All @@ -85,6 +85,7 @@ export interface AbstractCropperProps<Settings extends AbstractCropperSettings>
boundaryStretchAlgorithm?: BoundaryStretchAlgorithm;
boundarySizeAlgorithm?: BoundarySizeAlgorithm;
style?: CSSProperties;
settings: CropperStateSettingsProp<Settings>;
}

export type AbstractCropperIntrinsicProps<Settings extends AbstractCropperSettings> = Omit<
Expand Down

0 comments on commit 1da1ecf

Please sign in to comment.