New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Storage][File] Explicitly re-export model types #5532
[Storage][File] Explicitly re-export model types #5532
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I'd prefer a Model
suffix to Models
prefix, but otherwise, this is great!
Should we add the suffix to all the types from generated/src/models to make it clear that they are different? |
I think it's a good idea if you agree! |
/azp run js - storage-file - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
need to re-generate the recordings |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
After adding |
@@ -0,0 +1,1261 @@ | |||
## API Report File for "@azure/storage-file" | |||
|
|||
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is API extractor invoked in build time? Would better to ensure this tool is embedded properly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can add it as part of the build like keyvault libraries did. The problem was api-extractor never worked on storage code base before this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logged #5641
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1502a04
to
226a39e
Compare
/azp run js - storage-file - tests |
09e9d85
to
66e2c72
Compare
66e2c72
to
0fe9acd
Compare
@jeremymeng This is ready to be merged right? I see all relevant approvals and all tests have passed. |
Related to #5616 |
This PR replaces
import * as Model
with explicitly importing types that we used in public api surface. AgeneartedModels.ts
is added to import those types aliased withModel
suffix to indicate that they are from generated models.This change brings several benefits, among them
review
folder. It is used to audit the public api changes.