mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-25 22:10:10 +00:00
Fix Typescript definition for Permission (#2106)
This commit is contained in:
parent
4047a826e8
commit
8d902a7942
16
CHANGELOG.md
16
CHANGELOG.md
@ -15,6 +15,22 @@ x.x.x Release notes (yyyy-MM-dd)
|
|||||||
### Internal
|
### Internal
|
||||||
* None.
|
* 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)
|
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.
|
This release contains all changes from v2.19.0-rc.1 to v2.19.0-rc.5.
|
||||||
|
2
lib/index.d.ts
vendored
2
lib/index.d.ts
vendored
@ -585,7 +585,7 @@ declare namespace Realm.Permissions {
|
|||||||
class Permission {
|
class Permission {
|
||||||
static schema: ObjectSchema;
|
static schema: ObjectSchema;
|
||||||
|
|
||||||
identity: string;
|
role: Role;
|
||||||
canCreate: boolean;
|
canCreate: boolean;
|
||||||
canRead: boolean;
|
canRead: boolean;
|
||||||
canUpdate: boolean;
|
canUpdate: boolean;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user