type or interface could both work.
interface example {
s: string;
o: {
t: string;
arrn: number[];
arr: {
u: string;
}[];
};
Would transform to
interface transformed {
s: {
onChange: (v: string) => void;
};
o: {
t: {
onChange: (v: string) => void;
};
arrn: {
onChange: (v: number) => void;
}[];
arr: {
u: {
onChange: (v: number) => void;
};
}[];
};
Is this possible?
What is the direction to do something like this?