Add documentation.
This commit is contained in:
parent
5dc92d0e1a
commit
c7758eb9f0
|
@ -68,6 +68,11 @@ export async function saveUserLabels(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new user label ID by getting the current highest existing ID in
|
||||||
|
* storage and adding 1 to it. Defaults to 1 when no there are no existing
|
||||||
|
* labels.
|
||||||
|
*/
|
||||||
export async function newUserLabelId(): Promise<number> {
|
export async function newUserLabelId(): Promise<number> {
|
||||||
const userLabels = await collectUserLabels();
|
const userLabels = await collectUserLabels();
|
||||||
let newId = 1;
|
let newId = 1;
|
||||||
|
|
Loading…
Reference in New Issue