mirror of
https://github.com/status-im/realm-js.git
synced 2025-02-24 04:08:23 +00:00
fix docs and TS definitions
This commit is contained in:
parent
6349d22f55
commit
4a73b242af
@ -267,7 +267,7 @@ class User {
|
|||||||
* @param {string} recipient the optional recipient of the permission. Can be either
|
* @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
|
* 'any' which is the default, or 'currentUser' or 'otherUser' if you want only permissions
|
||||||
* belonging to the user or *not* belonging to the user.
|
* 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.
|
* information regarding the granted access.
|
||||||
* The collection is a live query similar to what you would get by callig Realm.objects,
|
* 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.
|
* so the same features apply - you can listen for notifications or filter it.
|
||||||
|
2
lib/index.d.ts
vendored
2
lib/index.d.ts
vendored
@ -309,7 +309,7 @@ declare namespace Realm.Sync {
|
|||||||
openManagementRealm(): Realm;
|
openManagementRealm(): Realm;
|
||||||
retrieveAccount(provider: string, username: string): Promise<Account>;
|
retrieveAccount(provider: string, username: string): Promise<Account>;
|
||||||
|
|
||||||
getGrantedPermissions(recipient: 'any' | 'currentUser' | 'otherUser'): Results<Permission>;
|
getGrantedPermissions(recipient: 'any' | 'currentUser' | 'otherUser'): Promise<Results<Permission>>;
|
||||||
applyPermissions(condition: PermissionCondition, realmUrl: string, accessLevel: AccessLevel): Promise<PermissionChange>;
|
applyPermissions(condition: PermissionCondition, realmUrl: string, accessLevel: AccessLevel): Promise<PermissionChange>;
|
||||||
offerPermissions(realmUrl: string, accessLevel: AccessLevel, expiresAt?: Date): Promise<string>;
|
offerPermissions(realmUrl: string, accessLevel: AccessLevel, expiresAt?: Date): Promise<string>;
|
||||||
acceptPermissionOffer(token: string): Promise<string>
|
acceptPermissionOffer(token: string): Promise<string>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user