Is there a way to ensure that the layoutKey remains as type L (specifically IOfficialLevelLayouts) even when passing in other values? Every time I provide a value, it seems to override the desired type.
https://i.sstatic.net/YfH6k.png https://i.sstatic.net/cJgSI.png
The current structure of ITableEntity is as follows:
interface ITableEntity<T, F, L> {
entity: BaseEntity<T, F, L>;
filterDefault?: Partial<T>;
actions?: IAction[];
layoutKey?: L;
onRowClick?: (item: T) => void;
}
Any suggestions on how to enforce the layoutKey to always be of type L (IOfficialLevelLayout)?