-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Update dev dependency "@microsoft/api-extractor" #9121
Conversation
mikeharder
commented
May 27, 2020
•
edited
Loading
edited
- Adds type annotations to public APIs
- Workaround for [api-extractor] import() types are not handled correctly in .d.ts rollups microsoft/rushstack#1050
Do we know if the problems described in #8400 is resolved in the latest api extractor? |
The api-extractor step is failing with the error - Error: The expression contains an import() type, which is not yet supported by API Extractor |
@ramya-rao-a: This PR was an experiment to answer this question (and see if anything else broke). @KarishmaGhiya: Was an issue filed against |
The error However, this comment suggests the fact we are hitting this error might be an anti-pattern in our code: microsoft/rushstack#1866 (comment) @xirzec: Can you please read this comment and suggest what we should do going forward? We can certainly stay pinned on an older version of |
This is strange. We upgraded to TS 3.8 three weeks ago, and the version of api-extractor in our repo has been working. Could be a regression in the new version? |
This error message was added in microsoft/rushstack#1867 We were unable to use versions But I would still like @xirzec to weigh in on whether this is something |
We have this code in identity logging.ts import { createClientLogger } from "@azure/logger";
/**
* The AzureLogger used for all clients within the identity package
*/
export const logger = createClientLogger("identity"); TypeScript (3.6, 3.7, 3.8) all generates the same typing file as /**
* The AzureLogger used for all clients within the identity package
*/
export declare const logger: import("@azure/logger").AzureLogger; So we are not using the new As for the breaking change in the comment I think we solved it using the downlevel-dts package, at least for the getter syntax, for lower version of TypeScript. |
I'm not sure what is broken here. I tried to use the 'import type' syntax but because API extractor broke I wasn't able to. We shouldn't be using that style of import anywhere. |
b8f0513
to
88b0e0e
Compare
The "import() type" issue is fixed for identity by this commit: Similar changes will be needed in other packages. |
88b0e0e
to
5a7956e
Compare