You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* index, deprecate, rename CliOptions towards PfMcpCliOptions, alias updates
* options, move DefaultOptionsOverrides to ProgrammaticOptions
* server, agent, replace alias JSDoc with copy, guidance on when to use
* e2e, align annotation with PfMcpCliOptions
Copy file name to clipboardExpand all lines: guidelines/agent_coding.md
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -194,14 +194,24 @@ While the codebase emphasizes pragmatism, **public APIs require comprehensive JS
194
194
195
195
-**`@param`**, **`@returns`**, **`@throws`**: Standard documentation for function signature.
196
196
-**`@property`**: Document properties for interfaces or classes.
197
-
-**`@alias`**: Used for stable aliased typings exposed to consumers.
197
+
-**Type aliases (do not use `@alias`)**:
198
+
-**Don't** use the `@alias` JSDoc tag on type aliases. Documentation generators may apply unwanted side effects (e.g. remaining symbols in the generated output).
199
+
-**Do** document aliases with prose: `Alias of {@link InternalType} (Internal type).` for stable aliased typings exposed to consumers in `src/index.ts`.
200
+
-**Do** use the simplified `Alias of {@link InternalType}.` for internal-only aliases to reduce redundancy.
198
201
-**`@template`**: Document generic type parameters.
199
202
-**`@example`**: Provide usage examples for complex functions.
200
203
-**`@note`**: Important implementation details or gotchas.
201
204
202
205
### 4.2 JSDoc Format Examples
203
206
204
207
```typescript
208
+
/**
209
+
* Exposed options for CLI use. A focused options interface.
210
+
*
211
+
* Alias of {@linkCliOptions} (Internal type).
212
+
*/
213
+
typePfMcpCliOptions=CliOptions;
214
+
205
215
/**
206
216
* Fetches documentation for a PatternFly component.
0 commit comments