-
Notifications
You must be signed in to change notification settings - Fork 604
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
[api-extractor] Support import statements inside namespaces (new in TypeScript 3.9) #1914
Comments
I am not able to repro this. In order to get the code to compile, I had to change the enum definitions to use
and I needed to rename Could you share a complete branch that repros this problem? Thanks! |
thanks for reply, sure, i will create private repository and then i will invite you as a collaborator. |
I saw that you created an api-extractor-demo repo. Let me know when it's set up and you have some repro steps. Thanks! |
ok. you can follow the setp:
and then you can saw the error show on your shell client |
Hey bro, how it is going. |
I don't see any scripts in your package.json for |
I tried running
Please provide more detailed repro instructions. Thanks! |
ooh, sorry,the correct procedure is:
|
|
The same problem. Repo: https://github.com/toyobayashi/denostd/tree/dts-rollup-error Branch: dts-rollup-error
|
But |
Okay this file is the problem: C:\GitR\denostd\dist\esm\std\path\win32.d.ts declare namespace _win32 {
/** This module is browser compatible. */
import { FormatInputPathObject, ParsedPath } from "./_interface"; <=== ERROR
export const sep = "\\";
export const delimiter = ";";
export function resolve(...pathSegments: string[]): string;
. . .
}
export default _win32; API Extractor uses the TypeScript 3.7 compiler (see issue #1866), which reports an error for that
Whereas you are using TypeScript 3.9. When I move the We need to update API Extractor to formally support TypeScript 3.9, but sheesh, this year the compiler has been introducing tons of fundamentally new syntax that is difficult to keep up with. I'll also note that by targeting the bleeding edge compiler, you may reduce the audience who can consume your library. For some users, migrating to latest TypeScript version can involve nontrivial effort. Could I ask you to keep your |
Thank you to figure out what is the problem, welcome to use this repo to debug anytime. By the way now api-extractor still does not support |
The current progress is in #1796, and that branch has been published as |
error message:
env:
code
local-invitation-failure-reason.ts
remote-invitation-failure-reason.ts
rtm.ts
main.ts
command line
The text was updated successfully, but these errors were encountered: