Prop-Types in React for custom object keys

后端 未结 0 1170
借酒劲吻你
借酒劲吻你 2020-12-31 14:43

I have an object type like this:

interface DataType {
    labels: string[];
    datasets: {
        [key: string]: number[]
    };
}

And I am

相关标签:
回答
  • 消灭零回复
提交回复
热议问题