import type { ApiDeclaredItem, ApiItemContainerMixin, ApiProperty, ApiPropertySignature, } from '@microsoft/api-extractor-model'; import type { PropsWithChildren } from 'react'; import { Anchor } from './Anchor'; import { ExcerptText } from './ExcerptText'; import { InheritanceText } from './InheritanceText'; import { TSDoc } from './documentation/tsdoc/TSDoc'; export enum PropertySeparatorType { Type = ':', Value = '=', } export function Property({ item, children, separator, inheritedFrom, }: PropsWithChildren<{ inheritedFrom?: (ApiDeclaredItem & ApiItemContainerMixin) | undefined; item: ApiProperty | ApiPropertySignature; separator?: PropertySeparatorType; }>) { const isDeprecated = Boolean(item.tsdocComment?.deprecatedBlock); const hasSummary = Boolean(item.tsdocComment?.summarySection); return (