Comments (3)
Hi, thanks for the report. Sorry, it's taking so long for me to respond. I'm really busy right now. But I'm gonna get to it as some point π
from csharptotypescript.
Sure, no worries. Just answer when you find some time.
For now, I decided to not use any automation for C#->TS generation, but it would be great if your tool supports generating separate .ts file for each C# object.
There are other solutions which supposedly support it (e.g. TypeGen), but it works on DLLs, not source (text) files like cs2ts, which is a great advantage over these tools π
from csharptotypescript.
I'm also using import-generation = Simple. The issue is that sometimes few classes are defined in a single .cs file, but are needed in other .cs files (multiple), so the default naming convention for imports generation doesn't work properly.
I think I have the same problem: Sometimes cs2ts generates two interfaces in one file and if those interfaces are referenced in another file, the imports may be wrong. E.g.
In file-A.ts
export interface A {...}
export interface B {...}
In another file
import { B } from "file-B.ts" (instead of "file-A.ts")
from csharptotypescript.
Related Issues (20)
- Option to add suffix for the interface names
- Option to add custom type mapping HOT 2
- TSX support? HOT 2
- support record types HOT 4
- "C# to TypeScript" server related error occurred: "spawn dotnet ENOENT". HOT 1
- Preserve comments
- Option for no semicolons?
- Some Chinese characters trigger error
- summary tag support
- [feature request] output file name begin with capital letter
- Being able to have multiple directories/files
- CLI tool improperly recognizing directories
- DateOnly not converting to string
- Property Name Not Match CamelCase HOT 3
- Does not work when "required" keyword is used in property declarations in class
- Is there a possibility to change the outputtype to type instead of interface?
- Fixed string to constant
- String enums for the command line interface
- Is there an option to enable convert methodsοΌ
- Const strings are not converted
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from csharptotypescript.