I am currently working on defining constraints for the method field
type event = {
[k: `on${string}`]:(e:string)=>void
}
However, I need the event argument to be a number for fields that do not begin with 'on'
type event = {
[k: `${xxx}`]:(e:number)=>void // XXX does not start with 'on'
}
Can someone help me figure out what should replace XXX?