Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timer is not a constructor #20

Closed
malorus opened this issue Sep 29, 2017 · 1 comment
Closed

Timer is not a constructor #20

malorus opened this issue Sep 29, 2017 · 1 comment

Comments

@malorus
Copy link

malorus commented Sep 29, 2017

Hi, I just wanted to use the library. But I got the following error:

Timer is not a constructor

I'm using this lib in nodejs and Typescript:

import { Timer } from 'timer.js';

export class MyClass {
time = new Timer();

...
}

why does the error occur? Any idea?

@malorus
Copy link
Author

malorus commented Sep 30, 2017

Solved it. It must be imported as:

import * as Timer from 'timer.js';

@malorus malorus closed this as completed Sep 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant