Skip to content

Commit

Permalink
fix: system arg types
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkooo committed Apr 16, 2024
1 parent 3153a80 commit 0cddac0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/dojo-bindgen/src/plugins/typescript/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,10 @@ export function defineContractComponents(world: World) {
if TypescriptPlugin::map_type(&arg.1.type_name()) == arg.1.type_name() {
format!("models.{}", arg.1.type_name())
} else {
TypescriptPlugin::map_type(&arg.1.type_name()).replace("RecsType.", "")
TypescriptPlugin::map_type(&arg.1.type_name())
.replace("RecsType.", "")
// types should be lowercased
.to_lowercase()
}
)
})
Expand Down

0 comments on commit 0cddac0

Please sign in to comment.