Skip to content

Commit

Permalink
fix api-extractor link and add more testcases
Browse files Browse the repository at this point in the history
  • Loading branch information
Swatinem committed Apr 18, 2019
1 parent 47e622a commit 83dc865
Show file tree
Hide file tree
Showing 14 changed files with 33 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export { ns };
```

Using `import * as` itself is not a problem and works fine on its own. It is the
*re-export* that breaks.
_re-export_ that breaks.

---

Expand All @@ -97,7 +97,7 @@ go the route of completely separating their public interfaces in a separate file

## Alternatives

- [API Extractor](https://github.com/Microsoft/web-build-tools/wiki/API-Extractor)
- [API Extractor](https://api-extractor.com/)
- [dts-bundle-generator](https://github.com/timocov/dts-bundle-generator)

[See](https://github.com/Swatinem/rollup-plugin-dts/issues/5)
Expand Down
3 changes: 3 additions & 0 deletions tests/testcases/circular-dependency-star/a.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export * from "./b";

export class A {}
3 changes: 3 additions & 0 deletions tests/testcases/circular-dependency-star/b.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export * from "./a";

export class B {}
1 change: 1 addition & 0 deletions tests/testcases/circular-dependency-star/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { A } from "./a";
3 changes: 3 additions & 0 deletions tests/testcases/circular-dependency-star/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"skip": true
}
3 changes: 3 additions & 0 deletions tests/testcases/circular-dependency/a.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export { B } from "./b";

export class A {}
3 changes: 3 additions & 0 deletions tests/testcases/circular-dependency/b.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export { A } from "./a";

export class B {}
3 changes: 3 additions & 0 deletions tests/testcases/circular-dependency/expected.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
declare class A {
}
export { A };
1 change: 1 addition & 0 deletions tests/testcases/circular-dependency/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { A } from "./a";
1 change: 1 addition & 0 deletions tests/testcases/export-star/a.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export function A() {}
1 change: 1 addition & 0 deletions tests/testcases/export-star/b.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export interface B {}
5 changes: 5 additions & 0 deletions tests/testcases/export-star/expected.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
interface B {
}
declare class A {
}
export { A, B };
2 changes: 2 additions & 0 deletions tests/testcases/export-star/exports.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from "./a";
export * from "./b";
2 changes: 2 additions & 0 deletions tests/testcases/export-star/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export class A {}
export { B } from "./exports";

0 comments on commit 83dc865

Please sign in to comment.