jhugman / uniffi-bindgen-react-native

A uniffi bindings generator for calling Rust from react-native
Other
0 stars 0 forks source link

Rename `data` property to `inner` in enums and errors #59

Closed jhugman closed 1 month ago

jhugman commented 1 month ago

According to The Big O of Code Reviews, this is a O(1) change.

This mechanical rename changes the type of enums and errors from:

type MyEnum = {
  tag: MyEnum_Tags,
  data: MyEnum_data,
};

to:

type MyEnum = {
  tag: MyEnum_Tags,
  inner: MyEnum_data,
};

This is to match the getInner and hasInner static methods for errors.

jhugman commented 1 month ago

Also see: #60.