Skip to content

Commit 2863820

Browse files
monicatangfacebook-github-bot
authored andcommitted
Export fragment type generation for FCL setup
Reviewed By: alunyov Differential Revision: D49932478 fbshipit-source-id: 9fee1704b6dfa017a936f2a06e58b2907053c5ae
1 parent b379edf commit 2863820

File tree

1 file changed

+11
-15
lines changed
  • compiler/crates/relay-compiler/src/artifact_content

1 file changed

+11
-15
lines changed

compiler/crates/relay-compiler/src/artifact_content/content.rs

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,6 @@ pub fn generate_fragment(
503503
schema,
504504
typegen_fragment,
505505
source_hash,
506-
skip_types,
507506
fragment_locations,
508507
)
509508
} else {
@@ -588,7 +587,7 @@ fn generate_read_only_fragment(
588587
typegen_fragment,
589588
schema,
590589
project_config,
591-
fragment_locations
590+
fragment_locations,
592591
)
593592
)?;
594593
}
@@ -653,7 +652,6 @@ fn generate_assignable_fragment(
653652
schema: &SDLSchema,
654653
typegen_fragment: &FragmentDefinition,
655654
source_hash: Option<&String>,
656-
skip_types: bool,
657655
fragment_locations: &FragmentLocations,
658656
) -> Result<Vec<u8>, FmtError> {
659657
let mut content_sections = ContentSections::default();
@@ -684,18 +682,16 @@ fn generate_assignable_fragment(
684682
writeln!(section, "/*::")?;
685683
}
686684

687-
if !skip_types {
688-
write!(
689-
section,
690-
"{}",
691-
generate_fragment_type_exports_section(
692-
typegen_fragment,
693-
schema,
694-
project_config,
695-
fragment_locations
696-
)
697-
)?;
698-
}
685+
write!(
686+
section,
687+
"{}",
688+
generate_fragment_type_exports_section(
689+
typegen_fragment,
690+
schema,
691+
project_config,
692+
fragment_locations,
693+
)
694+
)?;
699695

700696
if project_config.typegen_config.language == TypegenLanguage::Flow {
701697
writeln!(section, "*/")?;

0 commit comments

Comments
 (0)