标签: typescript react-intl
我想将 intl 对象传递给一个函数。作为我使用的类型:任何。 intl 的正确类型是什么?
function getLabel: (intl: any, optionSelected: string) => string = (intl, optionSelected) => { ... } const intl = useIntl(); getLabel(intl, optionSelected)