notAPolymorphicFunction() — react Function Reference
Architecture documentation for the notAPolymorphicFunction() function in TypeErrors.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD a24fb130_56e4_3068_6005_45fcf2946960["notAPolymorphicFunction()"] 8086dd94_cb7f_b871_d873_325159c25b69["TypeErrors.ts"] a24fb130_56e4_3068_6005_45fcf2946960 -->|defined in| 8086dd94_cb7f_b871_d873_325159c25b69 style a24fb130_56e4_3068_6005_45fcf2946960 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/Flood/TypeErrors.ts lines 123–131
export function notAPolymorphicFunction(
desc: string,
loc: SourceLocation,
): void {
CompilerError.throwInvalidJS({
reason: `Cannot call ${desc} with type arguments because it is not a polymorphic function`,
loc,
});
}
Domain
Subdomains
Source
Frequently Asked Questions
What does notAPolymorphicFunction() do?
notAPolymorphicFunction() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/Flood/TypeErrors.ts.
Where is notAPolymorphicFunction() defined?
notAPolymorphicFunction() is defined in compiler/packages/babel-plugin-react-compiler/src/Flood/TypeErrors.ts at line 123.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free