pubkey / rxdb

A fast, local first, reactive Database for JavaScript Applications https://rxdb.info/
https://rxdb.info/
Apache License 2.0
21.12k stars 1.03k forks source link

The expression of an export assignment must be an identifier or qualified name in an ambient context. #347

Closed CuriouslyCory closed 6 years ago

CuriouslyCory commented 6 years ago

Case

Since updating typescript to 2.6.0 I keep getting the following error: The expression of an export assignment must be an identifier or qualified name in an ambient context.

Issue

Critical failure

Info

Code

Just update to 2.6.0 and init a database.

CuriouslyCory commented 6 years ago

In index.d.ts this fixes the problem. I should probably figure out how to do a pull request.

declare let _default: {
    create,
    removeDatabase,
    plugin,
    isRxDatabase,
    isRxCollection,
    isRxDocument,
    isRxQuery,
    isRxSchema,
    RxSchema,
    PouchDB,
    QueryChangeDetector,
    RxDatabase,
    RxError
};

export default _default;
pubkey commented 6 years ago

I fixed this with the linked commits. Thank you for reporting :+1: