Realm-js: Typescript broken with latest realm release

Created on 5 Sep 2017  路  3Comments  路  Source: realm/realm-js

realms: 1.11.1
@types/realm: 1.0.3
typescript: 2.5.2

Error while compiling:

node_modules/realm/lib/index.d.ts(275,88): error TS2304: Cannot find name 'Permission'.
node_modules/realm/lib/index.d.ts(283,32): error TS2304: Cannot find name 'userId'.
node_modules/realm/lib/index.d.ts(284,32): error TS2304: Cannot find name 'metadataKey'.
node_modules/realm/lib/index.d.ts(284,45): error TS2374: Duplicate string index signature.
node_modules/realm/lib/index.d.ts(284,68): error TS2304: Cannot find name 'metadataValue'.

Looks like this commit missed the d.ts update - https://github.com/realm/realm-js/commit/402bf48f88700115ce8bb918373317cfddbd8960

Reproduction-Required T-Bug

Most helpful comment

@kontinuity I have merged a fix.

All 3 comments

@kontinuity Thanks for reporting.

@kontinuity I have merged a fix.

The fix was merged, but no new release with it was made, when is this going to land? this is breaking a CI build for me atm

Was this page helpful?
0 / 5 - 0 ratings