【发布时间】:2021-06-08 23:16:30
【问题描述】:
我正在使用@microsoft/mgt-react": "^2.1.0",我在文档中看到了“fallbackDetails”,但没有示例如何使用它。
我试过了:
return (<td title={uName} >
<Person personQuery={email} showPresence={true} view={PersonViewType.oneline}
**fallbackDetails={fallback } //Here Tslint Error**
personCardInteraction={PersonCardInteraction.hover} />
</td>
);
问题是:
fallbackDetails: IDynamicPerson; personCardInteraction: PersonCardInteraction.hover; }' is not assignable to type 'IntrinsicAttributes & PersonProps & { children?: ReactNode; }'.
Property 'fallbackDetails' does not exist on type 'IntrinsicAttributes & PersonProps & { children?: ReactNode; }'.ts(2322)
谁能提供一个 TypeScript 可以接受的例子? 或者我需要获取一个 Types.d.ts
提前致谢
【问题讨论】:
标签: typescript-typings microsoft-graph-toolkit