jhugman / uniffi-bindgen-react-native

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

Rename RecordFactory to Record #50

Closed jhugman closed 1 month ago

jhugman commented 1 month ago

We've been able to declare a type and a utility object of the same name.

Before this change, we could do:

const v: MyRecord = MyRecordFactory.create({ foo: 1 });

Now we can do:

const v: MyRecord = MyRecord.create({ foo: 1 });

This reduces the number of specially generated names which are really implementation details of uniffi.