[KeyVault] Updated path of the types to point to the correct directory#4716
[KeyVault] Updated path of the types to point to the correct directory#4716michaelmcmillan wants to merge 1 commit intoAzure:masterfrom
Conversation
|
Thanks for raising this. The issue looks like the .d.ts file we're creating isn't getting properly put into the package. It should be getting built by API Extractor using the .d.ts files tsc produces. I'll look into this a bit further and see if I can work out why it's not running properly. |
|
Filed #4720, which I think is the core issue here. Thanks again for the report. |
|
My pleasure! I’ll keep an eye out on #4720. Thank you, Jonathan :)
…On Thu, 8 Aug 2019 at 22:06, Jonathan Turner ***@***.***> wrote:
Filed #4720 <#4720>,
which I think is the core issue here.
Thanks again for the report.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4716?email_source=notifications&email_token=AABD57JV4YHJHIYUFDXER2LQDR4FPA5CNFSM4IKKOTVKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD34YEEY#issuecomment-519668243>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABD57K4MUNU7X3PLSNTV3DQDR4FPANCNFSM4IKKOTVA>
.
|
|
Thanks for bringing this to our attention @michaelmcmillan! Closing this PR as we have now shipped an update for the keyvault-secrets library with the same fix from the PR #4722 |
|
@michaelmcmillan Michael, being honest, I missed your PR. I think I was laser focused on the tasks I had. We do appreciate the time you put here. Please continue with your contributions! Also, have a great weekend! |
|
No worries, thanks for responding so quickly! |
Problem
When installing the
keyvault-secretspackage by typingyarn add @azure/keyvault-secretsand then trying to use it like this:the
tsc(TypeScript compiler) raises the following error:What I think is causing this
This is not the correct path to the types: 8e3c933#diff-9cb805b9c2b8f9e19a3d3937d6a28ce2R51. Here is the
treeof thetypes/srcdirectory:Suggested fix
Change the
typesparameter inpackage.jsonto point to thetypes/src/so that it implicitly usestypes/src/index.d.ts.