@@ -16,14 +16,16 @@ import { type Comment } from "./support/Comments";
1616import { assert } from "./support/Support" ;
1717
1818import { gatherNames } from "./GatherNames" ;
19- import { defaultInferenceFlags , inferenceFlagNames , inferenceFlags , InferenceFlags } from "./Inference" ;
19+ import { type InferenceFlags , defaultInferenceFlags , inferenceFlagNames , inferenceFlags } from "./Inference" ;
2020import { makeTransformations } from "./MakeTransformations" ;
2121import { messageError } from "./Messages" ;
2222import { type Annotation , type Location , type SerializedRenderResult , type Span } from "./Source" ;
2323import { type MultiFileRenderResult , type TargetLanguage } from "./TargetLanguage" ;
24- import { type StringTypeMapping , TypeBuilder } from "./TypeBuilder" ;
25- import { type TypeGraph , noneToAny , optionalToNullable , removeIndirectionIntersections } from "./TypeGraph" ;
26- import type { FixMeOptionsType } from "./types" ;
24+ import { TypeBuilder } from "./Type/TypeBuilder" ;
25+ import { type StringTypeMapping } from "./Type/TypeBuilderUtils" ;
26+ import { TypeGraph } from "./Type/TypeGraph" ;
27+ import { noneToAny , optionalToNullable , removeIndirectionIntersections } from "./Type/TypeGraphUtils" ;
28+ import { type FixMeOptionsType } from "./types" ;
2729
2830export function getTargetLanguage ( nameOrInstance : LanguageName | TargetLanguage ) : TargetLanguage {
2931 if ( typeof nameOrInstance === "object" ) {
@@ -200,13 +202,13 @@ class Run implements RunContext {
200202 const stringTypeMapping = this . stringTypeMapping ;
201203 const conflateNumbers = ! targetLanguage . supportsUnionsWithBothNumberTypes ;
202204 const typeBuilder = new TypeBuilder (
203- 0 ,
204205 stringTypeMapping ,
205206 this . _options . alphabetizeProperties ,
206207 this . _options . allPropertiesOptional ,
207208 this . _options . checkProvenance ,
208209 false
209210 ) ;
211+ typeBuilder . typeGraph = new TypeGraph ( typeBuilder , 0 , this . _options . checkProvenance ) ;
210212
211213 return { targetLanguage, stringTypeMapping, conflateNumbers, typeBuilder } ;
212214 }
0 commit comments