MCPcopy
hub / github.com/callumalpass/tasknotes / getFirstDayOfWeek

Method getFirstDayOfWeek

src/components/DateContextMenu.ts:86–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84 }
85
86 private getFirstDayOfWeek(): number {
87 const firstDay = this.options.plugin?.settings?.calendarViewSettings?.firstDay;
88 return typeof firstDay === "number" &&
89 Number.isInteger(firstDay) &&
90 firstDay >= 0 &&
91 firstDay <= 6
92 ? firstDay
93 : 0;
94 }
95
96 private buildMenu(): void {
97 if (this.options.title) {

Callers 1

getDateOptionsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected