Skip to content

Commit

Permalink
🤖 Merge PR DefinitelyTyped#59064 Updated Missing Props for react-avat…
Browse files Browse the repository at this point in the history
…ar-editor by @GimpMaster

* Update index.d.ts

* Update react-avatar-editor-tests.tsx
  • Loading branch information
JoshuaHintze authored Mar 2, 2022
1 parent fb0f14b commit e442e88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion types/react-avatar-editor/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
// Type definitions for react-avatar-editor 10.3
// Type definitions for react-avatar-editor 12.0
// Project: https://github.com/mosch/react-avatar-editor
// Definitions by: Diogo Corrêa <https://github.com/diogocorrea>
// Gabriel Prates <https://github.com/gabsprates>
// Laurent Senta <https://github.com/lsenta>
// David Spiess <https://github.com/davidspiess>
// John Grisham <https://github.com/JohnGrisham>
// Joshua Hintze <https://github.com/GimpMaster>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8

Expand All @@ -29,6 +30,7 @@ export interface AvatarEditorProps {
image: string | File;
width?: number | undefined;
height?: number | undefined;
backgroundColor?: string | undefined;
border?: number | number[] | undefined;
borderRadius?: number | undefined;
color?: number[] | undefined;
Expand Down
1 change: 1 addition & 0 deletions types/react-avatar-editor/react-avatar-editor-tests.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class AvatarEditorTest extends React.Component {
<AvatarEditor image="" className="helloworld" />
<AvatarEditor image="" width={1} />
<AvatarEditor image="" height={1} />
<AvatarEditor image="" backgroundColor="green" />
<AvatarEditor image="" border={1} />
<AvatarEditor image="" border={[1, 2]} />
<AvatarEditor image="" borderRadius={1} />
Expand Down

0 comments on commit e442e88

Please sign in to comment.