Home / Function/ types() — react Function Reference

types() — react Function Reference

Architecture documentation for the types() function in ReactStartTransition.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  bfad32a3_b5dd_ec68_3bfb_8b186a4f8f79["types()"]
  6c1a4807_17b9_f103_ac9c_f90f16c710be["ReactStartTransition.js"]
  bfad32a3_b5dd_ec68_3bfb_8b186a4f8f79 -->|defined in| 6c1a4807_17b9_f103_ac9c_f90f16c710be
  style bfad32a3_b5dd_ec68_3bfb_8b186a4f8f79 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react/src/ReactStartTransition.js lines 123–140

): () => void {
  if (!enableGestureTransition) {
    // eslint-disable-next-line react-internal/prod-error-codes
    throw new Error(
      'startGestureTransition should not be exported when the enableGestureTransition flag is off.',
    );
  }
  if (provider == null) {
    // We enforce this at runtime even though the type also enforces it since we
    // use null as a signal internally so it would lead it to be treated as a
    // regular transition otherwise.
    throw new Error(
      'A Timeline is required as the first argument to startGestureTransition.',
    );
  }
  const prevTransition = ReactSharedInternals.T;
  const currentTransition: Transition = ({}: any);
  if (enableViewTransition) {

Domain

Subdomains

Frequently Asked Questions

What does types() do?
types() is a function in the react codebase, defined in packages/react/src/ReactStartTransition.js.
Where is types() defined?
types() is defined in packages/react/src/ReactStartTransition.js at line 123.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free