feat(types): define config types

This commit is contained in:
syy11cn 2022-05-29 15:03:38 +08:00
parent 0f835a90fc
commit 42fffef4f1
2 changed files with 13 additions and 3 deletions

View File

@ -4,7 +4,7 @@ export interface IMarkdownReportConfig {
/** /**
* Creator of the document. * Creator of the document.
*/ */
creator: string creator?: string
/** /**
* Global style options. * Global style options.
@ -13,7 +13,7 @@ export interface IMarkdownReportConfig {
} }
export enum StyleName { export enum StyleId {
'normal' = 'normal', 'normal' = 'normal',
'h1' = 'heading1', 'h1' = 'heading1',
'h2' = 'heading2', 'h2' = 'heading2',
@ -23,3 +23,13 @@ export enum StyleName {
'h6' = 'heading6', 'h6' = 'heading6',
'table' = 'table', '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',
}

View File

@ -1 +1 @@
export { IMarkdownReportConfig, StyleName } from './config' export { IMarkdownReportConfig, StyleName, StyleId } from './config'