globalConfig.ts 979 B

1234567891011121314151617181920212223242526272829303132333435
  1. import {
  2. IPropertiesOptions
  3. } from "docx"
  4. // 正文除外的全局配置
  5. const options: Omit<IPropertiesOptions, "sections"> = {
  6. // title: string;
  7. // subject?: string;
  8. // creator?: string;
  9. // keywords?: string;
  10. // description?: string;
  11. // lastModifiedBy?: string;
  12. // revision?: number;
  13. // externalStyles?: string;
  14. // styles?: IStylesOptions;
  15. // numbering?: INumberingOptions;
  16. // comments?: ICommentsOptions;
  17. // footnotes?: Readonly<Record<string, {
  18. // children: readonly Paragraph[];
  19. // }>>;
  20. // background?: IDocumentBackgroundOptions;
  21. // features?: {
  22. // trackRevisions?: boolean;
  23. // updateFields?: boolean;
  24. // };
  25. // compatabilityModeVersion?: number;
  26. // compatibility?: ICompatibilityOptions;
  27. // customProperties?: readonly ICustomPropertyOptions[];
  28. // evenAndOddHeaderAndFooters?: boolean;
  29. // defaultTabStop?: number;
  30. // fonts?: readonly FontOptions[];
  31. // hyphenation?: IHyphenationOptions;
  32. }
  33. export default options