Bump prettier from 2.0.2 to 2.0.3 (#1263)

* Bump prettier from 2.0.2 to 2.0.3

Bumps [prettier](https://github.com/prettier/prettier) from 2.0.2 to 2.0.3.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.0.2...2.0.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Format

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Panayiotis Lipiridis <lipiridis@gmail.com>
This commit is contained in:
dependabot-preview[bot] 2020-04-06 14:21:07 +03:00 committed by GitHub
parent 4003fa24b2
commit 18f0b76231
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 183 additions and 159 deletions

View file

@ -120,9 +120,11 @@ import { actionFinalize } from "../actions";
function withBatchedUpdates<
TFunction extends ((event: any) => void) | (() => void)
>(func: Parameters<TFunction>["length"] extends 0 | 1 ? TFunction : never) {
return ((event) => {
unstable_batchedUpdates(func as TFunction, event);
}) as TFunction;
return (
((event) => {
unstable_batchedUpdates(func as TFunction, event);
}) as TFunction
);
}
const { history } = createHistory();