I have the same interface in two different formats, a JSON format where the keys are separated by low dash and a javascript camelCase format:
JSON format:
interface MyJsonInterface {
key_one: string;
key_two: number;
}
interface MyInterface {
keyOne: string;
keyTwo: number;
}
I would like to prevent duplications and don't know the right way to do it. I checked out
CodePudding user response: