mirror of
https://github.com/outline/outline.git
synced 2025-12-30 15:30:12 -06:00
* chore(deps-dev): bump typescript from 5.6.3 to 5.7.2 Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.6.3 to 5.7.2. - [Release notes](https://github.com/microsoft/TypeScript/releases) - [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml) - [Commits](https://github.com/microsoft/TypeScript/compare/v5.6.3...v5.7.2) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * tsc --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Tom Moor <tom.moor@gmail.com>
14 lines
413 B
TypeScript
14 lines
413 B
TypeScript
/**
|
|
* A simple wrapper around the startViewTransition API, if it exists. Otherwise
|
|
* it will just call the callback immediately.
|
|
*
|
|
* @param callback The callback to call inside the view transition.
|
|
*/
|
|
export const startViewTransition = (callback: ViewTransitionUpdateCallback) => {
|
|
if (self.document.startViewTransition) {
|
|
self.document.startViewTransition(callback);
|
|
} else {
|
|
callback();
|
|
}
|
|
};
|