Skip to content

Commit

Permalink
interface member @link bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yoursunny committed Jun 30, 2024
1 parent 61d2a53 commit 4c36153
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 27 deletions.
6 changes: 6 additions & 0 deletions packages/lib/src/func.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import type { LibInt } from "./intf";

export function libFunc(): LibInt {
console.log("Bar");
return { bar: true };
}
18 changes: 2 additions & 16 deletions packages/lib/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,2 @@
/**
* Docs for `lib` module
* @packageDocumentation
*/

/**
* Docs for `libFunc` function.
*/
export function libFunc(): LibInt {
console.log("Bar");
return { bar: true };
}

export interface LibInt {
bar: true;
}
export * from "./func";
export type * from "./intf";
4 changes: 4 additions & 0 deletions packages/lib/src/intf.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export interface LibInt {
/** Assigned by {@link libFunc}. */
bar: true;
}
13 changes: 2 additions & 11 deletions packages/wrapping-lib/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
/**
* Docs for `foo` module
* @packageDocumentation
*/
import type { LibInt } from "@typedoc/lib";

import { libFunc } from "@typedoc/lib";

/**
* Docs for `wrappingLibFunc` function, which returns a {@link @typedoc/lib!LibInt}
*/
export function wrappingLibFunc() {
return libFunc();
export interface WrappingInt extends LibInt {
}

0 comments on commit 4c36153

Please sign in to comment.