Skip to content

Wrong assignment with typescript compilation? #61

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

Closed
ghost opened this issue Aug 20, 2016 · 1 comment
Closed

Wrong assignment with typescript compilation? #61

ghost opened this issue Aug 20, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 20, 2016

Hi, it seems that when compiling the files the assignment from the enum object to an internal variable is wrong:

[default] /home/mc128k/node/etiquette-client/node_modules/angular2-logger/app/core/logger.ts:59:39
    Type 'string' is not assignable to type 'Level'.

Might be a config issue, but it should make sense, the code here assigns a string to a Level:

    private _loadLevel = (): Level => localStorage.getItem( this._storeAs );
@langley-agm
Copy link
Contributor

Hi @Mc128k, there's another issue already open for this, so I'm closing it.
In order to avoid this use an officially released version of Typescript like 1.8,

See #39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant