Skip to content

Interface: ParsedDoc

Defined in: packages/core/src/grammar.ts:74

The structured content extracted from one doc-comment block.

Properties

accessibility?

ts
optional accessibility?: string;

Defined in: packages/core/src/grammar.ts:92

@a11y/@accessibility — accessibility guidance.


animations

ts
animations: Map<string, string>;

Defined in: packages/core/src/grammar.ts:108

@keyframes/@animation descriptions, keyed by animation name.


className?

ts
optional className?: string;

Defined in: packages/core/src/grammar.ts:80

@class — an explicit base class selector (otherwise inferred from the CSS).


component?

ts
optional component?: string;

Defined in: packages/core/src/grammar.ts:76

@component/@utility/@rule/@declaration/@name — the record name. Marks a record boundary.


conditions

ts
conditions: DocCondition[];

Defined in: packages/core/src/grammar.ts:112

@container/@supports/@media/@responsive authored conditions.


cssProperties

ts
cssProperties: DocCssProperty[];

Defined in: packages/core/src/grammar.ts:100

@cssproperty declarations.


cssStates

ts
cssStates: Map<string, string>;

Defined in: packages/core/src/grammar.ts:102

@cssstate descriptions, keyed by state name.


customBlocks

ts
customBlocks: Map<string, string[]>;

Defined in: packages/core/src/grammar.ts:124

Content of registered custom (block) tags, keyed by tag name without its @.


demo?

ts
optional demo?: string;

Defined in: packages/core/src/grammar.ts:120

@demo <spec>.


deprecated?

ts
optional deprecated?: string;

Defined in: packages/core/src/grammar.ts:118

The <replacement> argument from a @deprecated tag.


examples

ts
examples: string[];

Defined in: packages/core/src/grammar.ts:114

@example blocks.


functions

ts
functions: Map<string, string>;

Defined in: packages/core/src/grammar.ts:106

@function descriptions, keyed by function name (e.g. --negate).


group?

ts
optional group?: string;

Defined in: packages/core/src/grammar.ts:90

@group/@category — a documentation group.


kind?

ts
optional kind?: CssRecordKind;

Defined in: packages/core/src/grammar.ts:78

The record kind chosen by the opening tag (component unless @utility/@rule/@declaration).


layers

ts
layers: Map<string, string>;

Defined in: packages/core/src/grammar.ts:110

@layer descriptions, keyed by layer name.


modifiers

ts
modifiers: Map<string, DocModifier>;

Defined in: packages/core/src/grammar.ts:96

@modifier prose, keyed by the modifier class without its dot (e.g. -color-secondary).


parts

ts
parts: Map<string, string>;

Defined in: packages/core/src/grammar.ts:98

@part/@csspart descriptions, keyed by the part name without its dot (e.g. item).


privateRemarks?

ts
optional privateRemarks?: string;

Defined in: packages/core/src/grammar.ts:86

@privateRemarks — internal-only prose.


releaseStage?

ts
optional releaseStage?: CssReleaseStage;

Defined in: packages/core/src/grammar.ts:94

The release stage from a modifier flag tag (@alpha/@beta/…).


remarks?

ts
optional remarks?: string;

Defined in: packages/core/src/grammar.ts:84

@remarks — extended prose.


see

ts
see: string[];

Defined in: packages/core/src/grammar.ts:122

@see <ref> entries.


since?

ts
optional since?: string;

Defined in: packages/core/src/grammar.ts:88

@since — version introduced.


slots

ts
slots: Map<string, string>;

Defined in: packages/core/src/grammar.ts:104

@slot descriptions, keyed by slot name (empty string for the default slot).


structure?

ts
optional structure?: StructureNode[];

Defined in: packages/core/src/grammar.ts:116

@structure — the raw (indented) HTML-tree body, parsed into nodes by parseStructure.


summary?

ts
optional summary?: string;

Defined in: packages/core/src/grammar.ts:82

@summary — one-line intro.

Released under the MIT License