src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.ts/sanitizedDirection
function sanitizedDirection(candidate: string): TypeHierarchyDirection {
	return candidate === TypeHierarchyDirection.Subtypes || candidate === TypeHierarchyDirection.Supertypes
		? candidate
		: TypeHierarchyDirection.Subtypes;
}