mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 22:49:45 +01:00
refactor: add predefined grouping keys
This commit is contained in:
@@ -44,7 +44,7 @@ class Settings {
|
||||
|
||||
/**
|
||||
*
|
||||
* @param {string} key
|
||||
* @param {GroupingKey} key
|
||||
* @param {GroupOptions} groupOptions
|
||||
*/
|
||||
async setGroupOptions(key, groupOptions) {
|
||||
@@ -54,7 +54,7 @@ class Settings {
|
||||
|
||||
/**
|
||||
*
|
||||
* @param {string} key
|
||||
* @param {GroupingKey} key
|
||||
* @returns {GroupOptions}
|
||||
*/
|
||||
getGroupOptions(key) {
|
||||
|
||||
@@ -6,3 +6,7 @@
|
||||
* sortDirection: "desc" | "asc"
|
||||
* }} GroupOptions
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef {"home" | "notes" | "notebooks" | "tags" | "topics" | "trash"} GroupingKey
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user