docs(office): 修正 office 工具结果 pageCount 的字段说明

This commit is contained in:
yudshj committed 2026-11-04 18:18:00 +08:00
1 parent f0f3f3fdd8
commit 2db0bb8874
4 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -130,7 +130,7 @@ export interface OfficeFileResult {
readonly path: string
/** Complete file bytes, bounded by `maxOutputBytes`. */
readonly bytes: number
/** Pages of a PDF output. */
/** Page count the converter reports for the output. */
readonly pageCount?: number
/** Requested OOXML font families unavailable to this operation. */
readonly missingFonts: string[]
+1 -1
View File
@@ -50,7 +50,7 @@ export interface OfficeFileValue<Operation extends 'convert' | 'recalculate' = '
file: string
format: OfficeFileFormats[Operation]
bytes: number
/** Pages of a PDF output. */
/** Page count the converter reports for the output. */
pageCount?: number
/** Requested font families that were substituted. */
missingFonts: string[]
+1 -1
View File
@@ -124,7 +124,7 @@ function fileProperties<const Formats extends readonly string[]>(formats: Format
file: { type: 'string', required: true, description: 'Absolute path of the temporary output file.' },
format: { type: 'string', required: true, enum: formats },
bytes: { type: 'integer', required: true },
pageCount: { type: 'integer', description: 'Pages of a PDF output.' },
pageCount: { type: 'integer', description: 'Page count the converter reports for the output.' },
missingFonts: MISSING_FONTS_SCHEMA,
} as const
}
@@ -965,7 +965,7 @@ interface ToolOutputMap {
file: string;
format: "pdf" | "docx" | "odt" | "txt" | "xlsx" | "ods" | "csv" | "pptx" | "odp";
bytes: number;
/** Pages of a PDF output. */
/** Page count the converter reports for the output. */
pageCount?: number;
missingFonts: string[];
};
@@ -977,7 +977,7 @@ interface ToolOutputMap {
file: string;
format: "xlsx" | "ods";
bytes: number;
/** Pages of a PDF output. */
/** Page count the converter reports for the output. */
pageCount?: number;
missingFonts: string[];
};