Skip to content

Commit

Permalink
Added conflictedVersion attributes and funcs
Browse files Browse the repository at this point in the history
  • Loading branch information
jgclark committed Jun 15, 2023
1 parent 6ac2e9f commit b06377f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions flow-typed/Noteplan.js
Original file line number Diff line number Diff line change
Expand Up @@ -1659,6 +1659,12 @@ paragraphs: $ReadOnlyArray < TParagraph >;
* TODO(@EduardMe): add this to the documentation.
*/
+frontmatterAttributes: Object;
/**
* Returns the conflicted version if any. Otherwise, returns undefined.
* Note: Available from v3.9.3
* @return { Object(filename: string, url: string, content: string) }
*/
+conflictedVersion: Object;

/**
* Get all available versions of a note from the backup database. It returns an array with objects that have following attributes: `content` (full content of the note) and `date` (when this version was saved).
Expand Down Expand Up @@ -1882,6 +1888,17 @@ removeBlockID(paragraph: TParagraph): void;
* @param {boolean} addReferenceSections
*/
printNote(addReferenceSections: boolean): void;

/**
* Resolves a conflict, if any, using the current version (which is version 1 in the conflict bar inside the UI). Once resolved you need to reload the note.
* Note: Available from v3.9.3
*/
resolveConflictWithCurrentVersion(): void;
/**
* Resolves a conflict, if any, using the other version (which is version 2 in the conflict bar inside the UI). Once resolved you need to reload the note.
* Note: Available from v3.9.3
*/
resolveConflictWithOtherVersion(): void;
}

declare class NotePlan {
Expand Down

0 comments on commit b06377f

Please sign in to comment.