Dear Lui,
This is an known issue https://github.com/mendix/pluggable-widgets-typing-generator/issues/36 I hope it will be fixed soon.
The type generator is generating the d.ts file based on xml file. So you can not change the files as it will be overwritten.
Suggestion to import the type and to extend it before using it.
import { MyWidgetContainerProps } from "../typings/MyWidgetProps";
interface MyWidgetpContainerPropsFixed extends MyWidgetContainerProps {
id: string;
}
const MyWidget: FunctionComponent<MyWidgetContainerPropsFixed> = props => {
return <div>MyWidget</div>;
}
Cheers, Andries