如何获取html data- *属性的类型安全性
interface DivProps { id?:string class?:string // allow data-* ? } function div(props:DivProps) { }const d = div({"data-id":"1"})