typedoc
typedoc copied to clipboard
Sorting of union types is non-deterministic
This issue is related to https://github.com/TypeStrong/typedoc/issues/2502 but applies to non-literal types. Sorting of union types is non-deterministic.
Steps to reproduce the bug
export type Type1 = 'type1';
export type Type2 = { prop1: string; prop2: boolean };
/**
* Some Interface
*/
export interface SomeInterface {
someUnionType: Type1 | Type2;
}
Expected
Actual
Most of the times it shows
But sometimes it shows
(This is causing our CI pipeline to fail as we have a job to ensure the API Doc changes are included in pull requests)
Environment
- Typedoc version: v0.26.10