ITypeEnv Type — react Architecture
Architecture documentation for the ITypeEnv type/interface in Types.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 94ac22a6_861d_2bba_1c9b_74e0ca240085["ITypeEnv"] 912702ee_f06e_77d9_d237_a41c50607cdf["Types.ts"] 94ac22a6_861d_2bba_1c9b_74e0ca240085 -->|defined in| 912702ee_f06e_77d9_d237_a41c50607cdf style 94ac22a6_861d_2bba_1c9b_74e0ca240085 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/Flood/Types.ts lines 650–665
export interface ITypeEnv {
popGeneric(name: string): void;
getGeneric(name: string): null | TypeParameter<ResolvedType>;
pushGeneric(
name: string,
binding: {name: string; id: TypeParameterId; bound: ResolvedType},
): void;
getType(id: Identifier): ResolvedType;
getTypeOrNull(id: Identifier): ResolvedType | null;
setType(id: Identifier, type: ResolvedType): void;
nextNominalId(): NominalId;
nextTypeParameterId(): TypeParameterId;
moduleEnv: Map<string, ResolvedType>;
addBinding(bindingIdentifier: t.Identifier, type: ResolvedType): void;
resolveBinding(bindingIdentifier: t.Identifier): ResolvedType | null;
}
Source
Frequently Asked Questions
What is the ITypeEnv type?
ITypeEnv is a type/interface in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/Flood/Types.ts.
Where is ITypeEnv defined?
ITypeEnv is defined in compiler/packages/babel-plugin-react-compiler/src/Flood/Types.ts at line 650.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free