diff --git a/types/react-image-crop/index.d.ts b/types/react-image-crop/index.d.ts index e406a59e3f..389e96d65c 100644 --- a/types/react-image-crop/index.d.ts +++ b/types/react-image-crop/index.d.ts @@ -4,6 +4,7 @@ // Elias Chaaya // Søren Englund // Jonathan Guo +// Lewis Monteith // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 @@ -49,6 +50,8 @@ declare namespace ReactCrop { locked?: boolean; renderComponent?: ReactNode; renderSelectionAddon?: (state: any) => ReactNode; + ruleOfThirds?: boolean; + circularCrop?: boolean; } function makeAspectCrop(crop: Crop, imageWidth: number, imageHeight: number): Crop; diff --git a/types/react-image-crop/test/react-image-crop-global-tests.ts b/types/react-image-crop/test/react-image-crop-global-tests.ts index 04fc5c537d..95eec6f7ba 100644 --- a/types/react-image-crop/test/react-image-crop-global-tests.ts +++ b/types/react-image-crop/test/react-image-crop-global-tests.ts @@ -121,6 +121,8 @@ class CompleteTest extends React.Component<{}, TestState> { onImageError: this.onImageError, className: 'my-cropper', locked: false, + ruleOfThirds: false, + circularCrop: false, }); } } diff --git a/types/react-image-crop/test/react-image-crop-module-tests.tsx b/types/react-image-crop/test/react-image-crop-module-tests.tsx index a30de35fd3..b5a81680d1 100644 --- a/types/react-image-crop/test/react-image-crop-module-tests.tsx +++ b/types/react-image-crop/test/react-image-crop-module-tests.tsx @@ -144,6 +144,8 @@ class CompleteTest extends React.Component<{}, TestState> { className="my-cropper" locked={false} renderComponent={
} + ruleOfThirds={false} + circularCrop={false} /> ); }