Change all project enums to objects with as const (#2445)
* feat: change all enums to as const objects * Add word to dictionary --------- Co-authored-by: Dolan Miu <dolan_miu@hotmail.com>
This commit is contained in:
committed by
GitHub
parent
fd1ea5b4dc
commit
a756a7697c
@ -19,12 +19,17 @@ export type RelationshipType =
|
||||
| "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes"
|
||||
| "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";
|
||||
|
||||
export enum TargetModeType {
|
||||
EXTERNAL = "External",
|
||||
}
|
||||
export const TargetModeType = {
|
||||
EXTERNAL: "External",
|
||||
} as const;
|
||||
|
||||
export class Relationship extends XmlComponent {
|
||||
public constructor(id: string, type: RelationshipType, target: string, targetMode?: TargetModeType) {
|
||||
public constructor(
|
||||
id: string,
|
||||
type: RelationshipType,
|
||||
target: string,
|
||||
targetMode?: (typeof TargetModeType)[keyof typeof TargetModeType],
|
||||
) {
|
||||
super("Relationship");
|
||||
|
||||
this.root.push(
|
||||
|
Reference in New Issue
Block a user