Fix Typescript definition for Permission (#2106)

This commit is contained in:
Christian Melchior 2018-11-13 10:21:31 +01:00 committed by GitHub
parent 4047a826e8
commit 8d902a7942
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 1 deletions

View File

@ -15,6 +15,22 @@ x.x.x Release notes (yyyy-MM-dd)
### Internal
* None.
x.x.x Release notes (yyyy-MM-dd)
=============================================================
### Enhancements
* None.
### Fixed
* The Typescript definition for `Realm.Permissions.Permission` did not have the correct `role` property defined. This could result in compilation errors like this "error TS2339: Property 'role' does not exist on type 'Permission'". Since 2.3.0.
### Compatibility
* Realm Object Server: 3.11.0 or later.
* APIs are backwards compatible with all previous release of realm in the 2.x.y series.
* File format: Generates Realms with format v9 (Reads and upgrades all previous formats)
### Internal
* None.
2.19.0 Release notes (2018-11-8)
=============================================================
This release contains all changes from v2.19.0-rc.1 to v2.19.0-rc.5.

2
lib/index.d.ts vendored
View File

@ -585,7 +585,7 @@ declare namespace Realm.Permissions {
class Permission {
static schema: ObjectSchema;
identity: string;
role: Role;
canCreate: boolean;
canRead: boolean;
canUpdate: boolean;