Skip to content

Commit

Permalink
prepare minor
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelGB committed Dec 5, 2023
1 parent 62abc76 commit bd26258
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/zettelkasten/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export { ZettelkastenTypeService } from './services/ZettelkastenTypeService';
export { StepBuilderInfo, StepSettings, ZettelFlowElement, SectionInfo, ZoneOption, SectionElement, AditionBaseElement, PromptElement, CalendarElement, SelectorElement } from './typing';
export { StepBuilderInfo, StepSettings, ZettelFlowElement, SectionInfo, ZoneOption, AditionBaseElement, PromptElement, CalendarElement, SelectorElement } from './typing';
export { StepBuilderModal } from './modals/StepBuilderModal';
export { SelectorMenuModal } from './modals/SelectorMenuModal';
export { StepBuilderMapper } from './mappers/StepBuilderMapper';
5 changes: 0 additions & 5 deletions src/zettelkasten/services/ZettelkastenTypeService.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import { actionsStore } from "architecture/api";
import { SectionElement } from "zettelkasten";

export class ZettelkastenTypeService {
public static isSectionType(value: string) {
const actionKeys = actionsStore.getActionsKeys();
return actionKeys.includes(value);
}

public static isSectionAction(value: any): value is SectionElement {
return value && typeof value === "object" && typeof value.type === "string" && ZettelkastenTypeService.isSectionType(value.type);
}
}
2 changes: 1 addition & 1 deletion src/zettelkasten/typing.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Menu, TFolder } from "obsidian";
import { Action } from "architecture/api";
import { Literal, ZettelNodeType } from "architecture/plugin"
import { ZettelNodeType } from "architecture/plugin"
import { HexString } from "obsidian"

export type StepBuilderInfo = {
Expand Down

0 comments on commit bd26258

Please sign in to comment.