Home / Function/ typeContext() — react Function Reference

typeContext() — react Function Reference

Architecture documentation for the typeContext() function in Environment.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  7741ec50_982e_3532_46b1_3f812ba7af09["typeContext()"]
  cba0c8a2_0db5_48e2_0d19_b2c6a46799e8["Environment"]
  7741ec50_982e_3532_46b1_3f812ba7af09 -->|defined in| cba0c8a2_0db5_48e2_0d19_b2c6a46799e8
  041ca752_10c1_3cda_1f5c_02f44a01310e["invariant()"]
  7741ec50_982e_3532_46b1_3f812ba7af09 -->|calls| 041ca752_10c1_3cda_1f5c_02f44a01310e
  style 7741ec50_982e_3532_46b1_3f812ba7af09 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/HIR/Environment.ts lines 860–866

  get typeContext(): FlowTypeEnv {
    CompilerError.invariant(this.#flowTypeEnvironment != null, {
      reason: 'Flow type environment not initialized',
      loc: GeneratedSource,
    });
    return this.#flowTypeEnvironment;
  }

Subdomains

Calls

Frequently Asked Questions

What does typeContext() do?
typeContext() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/Environment.ts.
Where is typeContext() defined?
typeContext() is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/Environment.ts at line 860.
What does typeContext() call?
typeContext() calls 1 function(s): invariant.

Analyze Your Own Codebase

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

Try Supermodel Free