Skip to content

Typedoc does not include props from an interface when Omit is used #1094

Closed
@sylvesteraswin

Description

@sylvesteraswin

In the extendedTypes of Props2 I get something similar to the below, but there is no id: 88 in the generated JSON.

"extendedTypes": [{
	"type": "reflection",
	"declaration": {
		"id": 88,
		"name": "__type",
		"kind": 65536,
		"kindString": "Type literal",
		"flags": {},
		"sources": [{
			"fileName": "fileName",
			"line": 14,
			"character": 43
		}]
	}
}],

Expected Behavior

I get only c:number as props in Props2.

Actual Behavior

Props2 to have a: string, b: string and c: number as its interface.

Steps to reproduce the bug

export interface Prop1 {
 a: string;
 b: string;
 c: string;
}

export interface Prop2 extends Omit<Prop1, "c"> {
 c: number;
}
typedoc --out typedoc ./file.tsx --theme minimal --mode modules

Environment

  • Typedoc version: 0.15.0
  • Node.js version: v11.15.0
  • OS: MacOS 10.14.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions