There's a specific type that I have in mind
export type baseEventType = {
eName: string;
mName: string;
};
and my goal is to enhance it by incorporating a rest parameter
interface gEvent extends baseEventType {
...rest: any[]
}
although this approach seems impractical
I envisioned utilizing it in this fashion
export const save = ({ eName, mName, ...rest }: gEvent) =>
Is there a way to make this concept functional? While the following alternative is feasible
export const save = (eName: string, mName: string, ...rest: any[]) => {
I would prefer to implement something akin to the initial structure.