Home / Function/ assertExhaustive() — react Function Reference

assertExhaustive() — react Function Reference

Architecture documentation for the assertExhaustive() function in ReactCompilerRule.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  7a124286_83f3_d336_7b0f_804a9beb43db["assertExhaustive()"]
  cc8eb92a_b0c5_c461_8a5e_7435585bbc6e["ReactCompilerRule.ts"]
  7a124286_83f3_d336_7b0f_804a9beb43db -->|defined in| cc8eb92a_b0c5_c461_8a5e_7435585bbc6e
  02c364ac_a9af_1b49_1a58_fc16375d1f3d["makeSuggestions()"]
  02c364ac_a9af_1b49_1a58_fc16375d1f3d -->|calls| 7a124286_83f3_d336_7b0f_804a9beb43db
  86f7dc54_69da_eb35_daf6_78a5a3c9b486["mapErrorSeverityToESlint()"]
  86f7dc54_69da_eb35_daf6_78a5a3c9b486 -->|calls| 7a124286_83f3_d336_7b0f_804a9beb43db
  style 7a124286_83f3_d336_7b0f_804a9beb43db fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/eslint-plugin-react-compiler/src/rules/ReactCompilerRule.ts lines 23–25

function assertExhaustive(_: never, errorMsg: string): never {
  throw new Error(errorMsg);
}

Domain

Subdomains

Frequently Asked Questions

What does assertExhaustive() do?
assertExhaustive() is a function in the react codebase, defined in compiler/packages/eslint-plugin-react-compiler/src/rules/ReactCompilerRule.ts.
Where is assertExhaustive() defined?
assertExhaustive() is defined in compiler/packages/eslint-plugin-react-compiler/src/rules/ReactCompilerRule.ts at line 23.
What calls assertExhaustive()?
assertExhaustive() is called by 2 function(s): makeSuggestions, mapErrorSeverityToESlint.

Analyze Your Own Codebase

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

Try Supermodel Free