Commit 58e1ccc3 authored by Robert Knight's avatar Robert Knight

Improve types in sidebar/helpers/permissions.js

parent 4bbfb782
......@@ -14,6 +14,7 @@
* annotation
*/
/** @param {string|null} savedLevel */
function defaultLevel(savedLevel) {
switch (savedLevel) {
case 'private':
......@@ -60,6 +61,7 @@ export function sharedPermissions(userid, groupid) {
* @param {string} userid - User ID of the author
* @param {string} groupid - ID of the group the annotation is being shared
* with
* @param {string|null} savedLevel
* @return {Permissions}
*/
export function defaultPermissions(userid, groupid, savedLevel) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment