mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
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:
parent
4003fa24b2
commit
18f0b76231
7 changed files with 183 additions and 159 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue