Skip to content

Commit

Permalink
Added correct typing to index.tsx to fix TS error TS7006: Parameter '…
Browse files Browse the repository at this point in the history
…resultCode' and Parameter 'imagePath' implicitly has an 'any' type
  • Loading branch information
DonovanDeSmedt authored and DonovanDeSmedt committed Dec 22, 2020
1 parent 6246f8c commit 87211e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ export default class PhotoEditor {

RNPhotoEditor.Edit(
{ colors, hiddenControls, stickers, ...props },
(imagePath) => {
(imagePath: string) => {
onDone && onDone(imagePath)
},
(resultCode) => {
(resultCode: number) => {
onCancel && onCancel(resultCode)
}
)
Expand Down

0 comments on commit 87211e6

Please sign in to comment.