@@ -40,7 +40,7 @@ class PinePermManager {
4040 * | 'expiration,user__username'
4141 * | '-expiration,user__username'
4242 * } order Fetching order
43- * @returns {AuthorizationUser[] }
43+ * @returns {Promise< AuthorizationUser[]> }
4444 */
4545 async getUsers ( limit = 10 , order = '-created' ) {
4646 try {
@@ -66,7 +66,7 @@ class PinePermManager {
6666 * Adds an user to the authorized list
6767 * @param {string } username User's username
6868 * @param {Date } [expiration] Expiration date
69- * @returns {'ok' | 'exists' | null }
69+ * @returns {Promise< 'ok' | 'exists' | null> }
7070 */
7171 async addUser ( username , expiration = null ) {
7272 try {
@@ -100,7 +100,7 @@ class PinePermManager {
100100 * Modify an authorization expiration date
101101 * @param {string } username User's username
102102 * @param {Date } [expiration] New expiration date
103- * @returns {'ok' | null }
103+ * @returns {Promise< 'ok' | null> }
104104 */
105105 async modifyExpiration ( username , expiration = null ) {
106106 try {
@@ -133,7 +133,7 @@ class PinePermManager {
133133 /**
134134 * Removes an user to the authorized list
135135 * @param {string } username User's username
136- * @returns {'ok' | null }
136+ * @returns {Promise< 'ok' | null> }
137137 */
138138 async removeUser ( username ) {
139139 try {
0 commit comments