is selection optional? PS: missing type annotation perhaps `selection?:any` or  `selection:any`