frontend/app/Master/MasterForm.ts (10 lines of code) (raw):
interface MasterFormProps<T, C> {
isEditing: boolean;
master: T;
isReadOnly: boolean;
isDirty: boolean;
copySource?: C;
saveRequested: (updated: T) => void;
editCancelled?: () => void;
}
export type { MasterFormProps };