ci: add TypeDoc validation to check:all with treatWarningsAsErrors (#1522)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
553d6d4a0d
commit
55857a8f05
7 changed files with 7 additions and 7 deletions
|
|
@ -32,7 +32,7 @@
|
|||
"prepack:all": "pnpm -r prepack",
|
||||
"lint:all": "pnpm sync:snippets --check && pnpm -r lint",
|
||||
"lint:fix:all": "pnpm sync:snippets && pnpm -r lint:fix",
|
||||
"check:all": "pnpm -r typecheck && pnpm -r lint",
|
||||
"check:all": "pnpm -r typecheck && pnpm -r lint && pnpm run docs:check",
|
||||
"test:all": "pnpm -r test",
|
||||
"test:conformance:client": "pnpm --filter @modelcontextprotocol/test-conformance run test:conformance:client",
|
||||
"test:conformance:client:all": "pnpm --filter @modelcontextprotocol/test-conformance run test:conformance:client:all",
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@
|
|||
"prepack": "npm run build",
|
||||
"lint": "eslint src/ && prettier --ignore-path ../../.prettierignore --check .",
|
||||
"lint:fix": "eslint src/ --fix && prettier --ignore-path ../../.prettierignore --write .",
|
||||
"check": "npm run typecheck && npm run lint && pnpm exec -- typedoc --emit none",
|
||||
"check": "npm run typecheck && npm run lint",
|
||||
"test": "vitest run",
|
||||
"test:watch": "vitest",
|
||||
"start": "npm run server",
|
||||
|
|
|
|||
|
|
@ -193,7 +193,7 @@ export class UnauthorizedError extends Error {
|
|||
}
|
||||
}
|
||||
|
||||
type ClientAuthMethod = 'client_secret_basic' | 'client_secret_post' | 'none';
|
||||
export type ClientAuthMethod = 'client_secret_basic' | 'client_secret_post' | 'none';
|
||||
|
||||
function isClientAuthMethod(method: string): method is ClientAuthMethod {
|
||||
return ['client_secret_basic', 'client_secret_post', 'none'].includes(method);
|
||||
|
|
|
|||
|
|
@ -82,7 +82,6 @@ export class ExperimentalClientTasks {
|
|||
* ```
|
||||
*
|
||||
* @param params - Tool call parameters (name and arguments)
|
||||
* @param resultSchema - Zod schema for validating the result (defaults to {@linkcode CallToolResultSchema})
|
||||
* @param options - Optional request options (timeout, signal, task creation params, etc.)
|
||||
* @returns AsyncGenerator that yields {@linkcode ResponseMessage} objects
|
||||
*
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@
|
|||
"prepack": "npm run build",
|
||||
"lint": "eslint src/ && prettier --ignore-path ../../.prettierignore --check .",
|
||||
"lint:fix": "eslint src/ --fix && prettier --ignore-path ../../.prettierignore --write .",
|
||||
"check": "npm run typecheck && npm run lint && pnpm exec -- typedoc --emit none",
|
||||
"check": "npm run typecheck && npm run lint",
|
||||
"test": "vitest run",
|
||||
"test:watch": "vitest",
|
||||
"start": "npm run server",
|
||||
|
|
|
|||
|
|
@ -1008,7 +1008,7 @@ export type RegisteredTool = {
|
|||
execution?: ToolExecution;
|
||||
_meta?: Record<string, unknown>;
|
||||
handler: AnyToolHandler<AnySchema | undefined>;
|
||||
/** @internal */
|
||||
/** @hidden */
|
||||
executor: ToolExecutor;
|
||||
enabled: boolean;
|
||||
enable(): void;
|
||||
|
|
@ -1147,7 +1147,7 @@ export type RegisteredPrompt = {
|
|||
title?: string;
|
||||
description?: string;
|
||||
argsSchema?: AnySchema;
|
||||
/** @internal */
|
||||
/** @hidden */
|
||||
handler: PromptHandler;
|
||||
enabled: boolean;
|
||||
enable(): void;
|
||||
|
|
|
|||
|
|
@ -39,5 +39,6 @@ export default {
|
|||
headings: {
|
||||
readme: false
|
||||
},
|
||||
treatWarningsAsErrors: true,
|
||||
out: 'tmp/docs/',
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue