You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When use with electron is will be very inconvinience if we can't use enum types in renderer process, and there's not way to use that unless import this module, (not import type). Maybe we can provide a way to import just types, but not starting an dotnet runtime?
The text was updated successfully, but these errors were encountered:
You can run the TS generator tool on the .NET assembly, which will output the TS types. I think it is generally not very useful to load those generated types into JS without also loading the .NET runtime. I understand just loading the enums could work, but that is of limited value. If you do need that, you can make a simple script to remove the other imports from the TS file or otherwise extract the enum parts that you need.
Like I said in #399, instead of import ts without dotnet runtime, it seems wiser to generate a seperated ts file that contains pure javascript types, to be used with JSON.parse, and without loading dotnet runtime.
When use with electron is will be very inconvinience if we can't use enum types in renderer process, and there's not way to use that unless import this module, (not import type). Maybe we can provide a way to import just types, but not starting an dotnet runtime?
The text was updated successfully, but these errors were encountered: