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
First of all, thank you for your fantastic work on this library!
I would like to suggest a feature enhancement that would allow users to choose between generating TypeScript definitions as export interface or export type. Currently, the generator produces TypeScript definitions in a specific format (e.g., class), but having the flexibility to toggle between interface and type would make this tool even more versatile and better aligned with different project requirements and coding styles.
Proposed Feature
Introduce an option (eg: [JSExport(AsInterface: true)]) that allows users to specify whether TypeScript definitions should be generated as:
[JSExport(AsInterface: true)]
public class SomeDto
{
public string Name { get; set; }
}
// Typescript
export interface SomeDto
export type SomeType
Thanks
The text was updated successfully, but these errors were encountered:
First of all, thank you for your fantastic work on this library!
I would like to suggest a feature enhancement that would allow users to choose between generating TypeScript definitions as
export interface
orexport type
. Currently, the generator produces TypeScript definitions in a specific format (e.g., class), but having the flexibility to toggle between interface and type would make this tool even more versatile and better aligned with different project requirements and coding styles.Proposed Feature
Introduce an option (eg:
[JSExport(AsInterface: true)]
) that allows users to specify whether TypeScript definitions should be generated as:Thanks
The text was updated successfully, but these errors were encountered: