gpt-4.1-mini-2025-04-14· OpenAI
WildChat-4.8M (AI2)
me lo converti in typescript " public class ARXFieldsMapping { public string SAEPField {…
- User
me lo converti in typescript " public class ARXFieldsMapping { public string SAEPField { get; set; } public string ARXExternalId { get; set; } public FieldType FieldType { get; set; } }
public enum FieldType { Textbox, Databox, Numeric, Combobox, TableBox, Checkbox, MultiValue, ClasseBox, Group, RubricaBox, TextArea, }"? - Assistant
Certo! Ecco la conversione del tuo codice C# in TypeScript:
export enum FieldType { Textbox, Databox, Numeric, Combobox, TableBox, Checkbox, MultiValue, ClasseBox, Group, RubricaBox, TextArea, } export interface ARXFieldsMapping { SAEPField: string; ARXExternalId: string; FieldType: FieldType; }Se vuoi usare una classe invece di un'interfaccia in TypeScript, puoi farlo così:
export class ARXFieldsMapping { SAEPField: string; ARXExternalId: string; FieldType: FieldType; constructor(saepField: string, arxExternalId: string, fieldType: FieldType) { this.SAEPField = saepField; this.ARXExternalId = arxExternalId; this.FieldType = fieldType; } }Fammi sapere se ti serve altro!