Skip to content

Commit f8a28f9

Browse files
committed
Fix flow errors
1 parent 8710b28 commit f8a28f9

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

jgclark.DailyJournal/src/journalHelpers.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ export async function processJournalQuestions(period: string): Promise<void> {
218218
// Add the finished review text to the current calendar note,
219219
// appending after the line found in config.reviewSectionHeading.
220220
// If this doesn't exist, then append it first.
221+
// $FlowIgnore(incompatible-call) .note is a superset of CoreNoteFields
221222
logDebug(pluginJson, `Appending answers to heading '${config.reviewSectionHeading}' in note ${displayTitle(Editor.note)}`)
222223
const matchedHeading = findHeadingStartsWith(outputNote, config.reviewSectionHeading)
223224
outputNote.addParagraphBelowHeadingTitle(output,

jgclark.DailyJournal/src/templatesStartEnd.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,12 @@ const NOTE_TYPE_CONFIG = {
5353
*/
5454
async function ensureCorrectNoteOpen(isNoteType: Function, noteType: string, workToday: boolean): Promise<void> {
5555
if (Editor.note && isNoteType(Editor.note) && !workToday) {
56+
// $FlowIgnore(invalid-computed-property-type) .note is a superset of CoreNoteFields
5657
logDebug('ensureCorrectNoteOpen', `Will work on the open ${noteType} note '${displayTitle(Editor.note)}'`)
5758
} else {
5859
logInfo('ensureCorrectNoteOpen', `Started without a ${noteType} note open, so will open and work in this ${noteType}'s note.`)
5960
await Editor.openNoteByDate(new Date(), false, 0, 0, false, noteType)
61+
// $FlowIgnore(invalid-computed-property-type) .note is a superset of CoreNoteFields
6062
logDebug('ensureCorrectNoteOpen', `- for '${displayTitle(Editor.note)}'`)
6163
}
6264
}

0 commit comments

Comments
 (0)