Skip to content

armgit / Handy

Public Imported from GitHub
0

A free, open source, and extensible speech-to-text application that works completely offline.

497 B
Raw Blame
/** The person asked their system for less motion. */
export const prefersReducedMotion = (): boolean =>
  matchMedia("(prefers-reduced-motion: reduce)").matches;

/** A running View Transition. */
export type ViewTransition = {
  ready: Promise<void>;
  finished: Promise<void>;
  skipTransition: () => void;
};

/** `document`, with View Transitions where the webview has them. */
export type WithViewTransitions = Document & {
  startViewTransition?: (update: () => void) => ViewTransition;
};