From 42fffef4f14a607d534edb1ae33cfd96b601b395 Mon Sep 17 00:00:00 2001 From: syy11cn Date: Sun, 29 May 2022 15:03:38 +0800 Subject: [PATCH] feat(types): define config types --- packages/types/src/config.ts | 14 ++++++++++++-- packages/types/src/index.ts | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/packages/types/src/config.ts b/packages/types/src/config.ts index 33b3981..fe97aaf 100644 --- a/packages/types/src/config.ts +++ b/packages/types/src/config.ts @@ -4,7 +4,7 @@ export interface IMarkdownReportConfig { /** * Creator of the document. */ - creator: string + creator?: string /** * Global style options. @@ -13,7 +13,7 @@ export interface IMarkdownReportConfig { } -export enum StyleName { +export enum StyleId { 'normal' = 'normal', 'h1' = 'heading1', 'h2' = 'heading2', @@ -23,3 +23,13 @@ export enum StyleName { 'h6' = 'heading6', 'table' = 'table', } + +export enum StyleName { + 'normal' = 'Normal', + 'h1' = 'Heading 1', + 'h2' = 'Heading 2', + 'h3' = 'Heading 3', + 'h4' = 'Heading 4', + 'h5' = 'Heading 5', + 'h6' = 'Heading 6', +} diff --git a/packages/types/src/index.ts b/packages/types/src/index.ts index 7f630b6..ff3c050 100644 --- a/packages/types/src/index.ts +++ b/packages/types/src/index.ts @@ -1 +1 @@ -export { IMarkdownReportConfig, StyleName } from './config' +export { IMarkdownReportConfig, StyleName, StyleId } from './config'