microsoftgraph / microsoft-graph-toolkit

Authentication Providers and UI components for Microsoft Graph 🦒
https://docs.microsoft.com/graph/toolkit/overview
Other
964 stars 309 forks source link

[MGT React] Export mgt types imported in generated.ts #715

Closed nmetulev closed 3 years ago

nmetulev commented 4 years ago

Description

mgt-react should export types used by mgt-react components

Rationale

Today, the developer is required to import from both @microsoft/mgt and @microsoft/mgt-react. This proposal would allow the types to be re-exported from mgt-react so only one import statement is needed for most scenarios.

Preferred solution

Update the generator code to add an export statement at the end for the same types that are imported at the top.

ghost commented 4 years ago

Hello nmetulev, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌