Skip to content

Commit

Permalink
Change changeBackgroundReplacementImage return type to Promise
Browse files Browse the repository at this point in the history
  • Loading branch information
dingyishen-amazon committed Aug 1, 2024
1 parent f6978a3 commit 86d4cfc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Add `changeBackgroundReplacementImage` function in the `BackgroundReplacementProvider` to enable the functionality of changing the background replacement image.
- Add `changeBackgroundReplacementImage` function in the `BackgroundReplacementProvider` to enable the functionality of changing the background replacement image. `changeBackgroundReplacementImage` will take a `Blob` as parameter and return a `Promise`.

### Removed

Expand Down
2 changes: 1 addition & 1 deletion src/providers/BackgroundReplacementProvider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ interface BackgroundReplacementProviderState {
backgroundReplacementProcessor: BackgroundReplacementProcessor | undefined;
changeBackgroundReplacementImage: (
imageBlob: Blob
) => {};
) => Promise<void>;
}

const BackgroundReplacementProviderContext = createContext<
Expand Down

0 comments on commit 86d4cfc

Please sign in to comment.