Switch enums to objects with as const
This commit is contained in:
@ -1,16 +1,16 @@
|
||||
export enum FootnoteRestartLocation {
|
||||
Continuous ="continuous",
|
||||
EachSection = "eachSect",
|
||||
EachPage = "eachPage",
|
||||
}
|
||||
export const FootnoteRestartLocation = {
|
||||
CONTINUOUS: "continuous",
|
||||
EACH_SECTION: "eachSect",
|
||||
EACH_PAGE: "eachPage",
|
||||
} as const;
|
||||
|
||||
export type FootnoteRestartLocationType = (typeof FootnoteRestartLocation)[keyof typeof FootnoteRestartLocation]
|
||||
|
||||
export enum FootnotePositioningLocation {
|
||||
PageBottom = "pageBottom",
|
||||
BeneathText = "beneathText",
|
||||
SectionEnd = "sectEnd",
|
||||
DocumentEnd = "docEnd",
|
||||
}
|
||||
export const FootnotePositioningLocation = {
|
||||
PAGE_BOTTOM: "pageBottom",
|
||||
BENEATH_TEXT: "beneathText",
|
||||
SECTION_END: "sectEnd",
|
||||
DOCUMENT_END: "docEnd",
|
||||
} as const;
|
||||
|
||||
export type FootnotePositioningLocationType = (typeof FootnotePositioningLocation)[keyof typeof FootnotePositioningLocation]
|
||||
|
Reference in New Issue
Block a user