Record vs Mapped type syntax
I wanted to type the modal
variable and I faced some challenge time.
Here are my types
interface BaseModalProps {
handleClose: () => void;
}
interface ModalProps = {
'modal-1': Record<never, never>;
'modal-2': {…