diff --git a/docs/sync.js b/docs/sync.js index d684fb36..265679c0 100644 --- a/docs/sync.js +++ b/docs/sync.js @@ -272,7 +272,7 @@ class User { * @param {string} recipient the optional recipient of the permission. Can be either * 'any' which is the default, or 'currentUser' or 'otherUser' if you want only permissions * belonging to the user or *not* belonging to the user. - * @returns {Results} a queryable collection of permission objects that provides detailed + * @returns {Promise} a Promise with a queryable collection of permission objects that provides detailed * information regarding the granted access. * The collection is a live query similar to what you would get by callig Realm.objects, * so the same features apply - you can listen for notifications or filter it. diff --git a/lib/index.d.ts b/lib/index.d.ts index ee2ee3ca..6af3823d 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -309,7 +309,7 @@ declare namespace Realm.Sync { openManagementRealm(): Realm; retrieveAccount(provider: string, username: string): Promise; - getGrantedPermissions(recipient: 'any' | 'currentUser' | 'otherUser'): Results; + getGrantedPermissions(recipient: 'any' | 'currentUser' | 'otherUser'): Promise>; applyPermissions(condition: PermissionCondition, realmUrl: string, accessLevel: AccessLevel): Promise; offerPermissions(realmUrl: string, accessLevel: AccessLevel, expiresAt?: Date): Promise; acceptPermissionOffer(token: string): Promise