Skip to content

Commit

Permalink
Use any type for rmpv::Value in TypeScript (#127)
Browse files Browse the repository at this point in the history
* Use any type for rmpv::Value

* Update CHANGELOG
  • Loading branch information
arendjr authored Jul 18, 2022
1 parent 7fa8e0b commit 7bdc71a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,7 @@
- Various smaller bugfixes.
- **Deprecation**: `BindingsType::TsRuntime` is now deprecated in favor of
`BindingsType::TsRuntimeWithExtendedConfig`.
- Fix #88: Bounds are propagated correctly to generated types (with the exception of the compile-time only `Serializable` bound).
- Fix #88: Bounds are propagated correctly to generated types (with the
exception of the compile-time only `Serializable` bound).
- Fix #88: Deal with the Unit (`()`) type.
- Use `any` type in TypeScript to represent `rmpv::Value`.
2 changes: 1 addition & 1 deletion fp-bindgen/src/serializable/rmpv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ impl Serializable for rmpv::Value {
},
)]),
serde_attrs: Vec::new(),
ts_ty: "string".to_owned(),
ts_ty: "any".to_owned(),
ts_declaration: None,
})
}
Expand Down

0 comments on commit 7bdc71a

Please sign in to comment.