Skip to content

Commit 58e1ccc

Browse files
committed
Improve types in sidebar/helpers/permissions.js
1 parent 4bbfb78 commit 58e1ccc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/sidebar/helpers/permissions.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* annotation
1515
*/
1616

17+
/** @param {string|null} savedLevel */
1718
function defaultLevel(savedLevel) {
1819
switch (savedLevel) {
1920
case 'private':
@@ -60,6 +61,7 @@ export function sharedPermissions(userid, groupid) {
6061
* @param {string} userid - User ID of the author
6162
* @param {string} groupid - ID of the group the annotation is being shared
6263
* with
64+
* @param {string|null} savedLevel
6365
* @return {Permissions}
6466
*/
6567
export function defaultPermissions(userid, groupid, savedLevel) {

0 commit comments

Comments
 (0)