Open
Description
Been having a little issue with generating Typescript definitions for the past few days, wondering if anyone would be able to give me some pointers or if I'm approaching this correctly.
I've been working on restructuring Ferrostar react-native project in a more mono-repo like structure so we can have our uniffi-binding, core, view logic all be in separate projects so someone can import them all independently of each other. This would also align better with how are other platform's are structured.
Currently I haven't been able to get the Typescript definitions to build as I get the error below. I have been wondering if this issue is related to #196 but it seems to be a different output.
$ yarn run prepare
ℹ Building target codegen
ℹ Building target commonjs
ℹ Cleaning up previous build at lib/commonjs
ℹ Building target module
ℹ Cleaning up previous build at lib/module
ℹ Building target typescript
ℹ Cleaning up previous build at lib/typescript
ℹ Cleaning up previous iOS codegen native code at ios/generated
ℹ Cleaning up previous Android codegen native code at android/generated
ℹ Compiling 4 files in src with babel
ℹ Compiling 4 files in src with babel
✔ Wrote files to lib/module
✔ Wrote files to lib/commonjs
ℹ Generating type definitions with tsc
src/generated/ferrostar.ts:6209:1 - error TS4094: Property 'byteSize' of exported anonymous class type may not be private or protected.
6209 export default Object.freeze({
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6210 initialize: uniffiEnsureInitialized,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
6251 },
~~~~
6252 });
~~~
src/generated/ferrostar.ts:6209:1 - error TS4094: Property 'reader' of exported anonymous class type may not be private or protected.
6209 export default Object.freeze({
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6210 initialize: uniffiEnsureInitialized,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
6251 },
~~~~
6252 });
~~~
src/generated/ferrostar.ts:6209:1 - error TS4094: Property 'writer' of exported anonymous class type may not be private or protected.
6209 export default Object.freeze({
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6210 initialize: uniffiEnsureInitialized,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
6251 },
~~~~
6252 });
~~~
Found 3 errors in the same file, starting at: src/generated/ferrostar.ts:6209
Metadata
Metadata
Assignees
Labels
No labels