chore(backend_api): document week note behaviour

This commit is contained in:
Elian Doran 2025-07-02 21:41:12 +03:00
parent 68bdd1336f
commit b20a8bc90b
No known key found for this signature in database

View File

@ -255,8 +255,12 @@ export interface Api {
/** /**
* Returns week note for given date. If such a note doesn't exist, it is created. * Returns week note for given date. If such a note doesn't exist, it is created.
* *
* <p>
* If the calendar does not support week notes, this method will return `null`.
*
* @param date in YYYY-MM-DD format * @param date in YYYY-MM-DD format
* @param rootNote - specify calendar root note, normally leave empty to use the default calendar * @param rootNote - specify calendar root note, normally leave empty to use the default calendar
* @return an existing or newly created week note, or `null` if the calendar does not support week notes.
*/ */
getWeekNote(date: string, rootNote: BNote): BNote | null; getWeekNote(date: string, rootNote: BNote): BNote | null;