Skip to content

Cannot opt-in import operator's Type Definitions from 'rxjs/add/operator/***' #1193

Closed
@tetsuharuohzeki

Description

@tetsuharuohzeki

At 5.0.0-beta.1, We can success to compile the following code.
However, this code should not success the compilation because the code does not import rxjs/add/operator/map.

import {Observable} from 'rxjs';

// The compilation should not success
// because this code does not import 'rxjs/add/operator/map'.
Observable.timer(1).map(() => {}).subscribe(() => {});

I'm not sure this problem is a higher priority issue, but I think this may be a problem.

@kwonoj @david-driscoll Do you recognize this problem?

Metadata

Metadata

Assignees

Labels

TSIssues and PRs related purely to TypeScript issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions