Skip to content

Usage with Typescript #41

@undsoft

Description

@undsoft

Hi, I've been trying to use the library in Typescript with no luck.

Since the library has no typings, I've declared my own module:
declare module 'mobx-delorean';

but when running I get this:

Uncaught TypeError: Cannot read property 'action' of undefined
    at eval (utils.js:82)
    at Object.../../../node_modules/mobx-delorean/lib/utils.js (main.js:10269)
    at __webpack_require__ (main.js:724)
    at fn (main.js:101)
    at eval (spy.js:14)
    at Object.../../../node_modules/mobx-delorean/lib/spy.js (main.js:10209)
    at __webpack_require__ (main.js:724)
    at fn (main.js:101)
    at eval (dev.js:11)
    at Object.../../../node_modules/mobx-delorean/lib/dev.js (main.js:10149)

Any suggestions on how I can make it work with Typescript?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions