Issue 1:
I'm using TypeScript 1.6.

I've targeted es5, shouldn't these *.es6.d.ts files be ignored by the compiler? at first I thought I can just use exclude but it doesn't support globs (I think) so I can't filter them out.

It seems like it's not only the *.d.ts files but there's more files there to ignore.

Is there a way I can fix that without deleting files?

Here is the tsconfig.json I'm using.

{
"compilerOptions": {
"noImplicitAny": false,
"noEmitOnError": true,
"removeComments": false,
"inlineSourceMap": true,
"experimentalDecorators": true,
"target": "es5",
"module": "commonjs",
"outDir": "./.out"
}
}

Here are the errors I'm getting.

.build/node_modules/rx/ts/core/abstractobserver.ts(25,13): error TS2300: Duplicate identifier 'isStopped'.
.build/node_modules/rx/ts/core/abstractobserver.ts(44,20): error TS2403: Subsequent variable declarations must have the same type. Variable 'AbstractObserver' must be of type 'AbstractObserverStatic', but here has type 'AbstractObserverStatic'.
.build/node_modules/rx/ts/core/anonymousobserver.ts(33,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'AnonymousObserver' must be of type 'AnonymousObserverStatic', but here has type 'AnonymousObserverStatic'.
.build/node_modules/rx/ts/core/concurrency/currentthreadscheduler.ts(8,9): error TS2300: Duplicate identifier 'currentThread'.
.build/node_modules/rx/ts/core/concurrency/defaultscheduler.ts(4,9): error TS2300: Duplicate identifier 'timeout'.
.build/node_modules/rx/ts/core/concurrency/defaultscheduler.ts(5,9): error TS2300: Duplicate identifier 'default'.
.build/node_modules/rx/ts/core/concurrency/immediatescheduler.ts(4,9): error TS2300: Duplicate identifier 'immediate'.
.build/node_modules/rx/ts/core/concurrency/scheduleditem.ts(6,13): error TS2300: Duplicate identifier 'scheduler'.
.build/node_modules/rx/ts/core/concurrency/scheduleditem.ts(7,13): error TS2300: Duplicate identifier 'state'.
.build/node_modules/rx/ts/core/concurrency/scheduleditem.ts(8,13): error TS2300: Duplicate identifier 'action'.
.build/node_modules/rx/ts/core/concurrency/scheduleditem.ts(9,13): error TS2300: Duplicate identifier 'dueTime'.
.build/node_modules/rx/ts/core/concurrency/scheduleditem.ts(10,13): error TS2300: Duplicate identifier 'comparer'.
.build/node_modules/rx/ts/core/concurrency/scheduleditem.ts(11,13): error TS2300: Duplicate identifier 'disposable'.
.build/node_modules/rx/ts/core/concurrency/scheduleditem.ts(23,20): error TS2403: Subsequent variable declarations must have the same type. Variable 'ScheduledItem' must be of type 'ScheduledItemStatic', but here has type 'ScheduledItemStatic'.
.build/node_modules/rx/ts/core/concurrency/scheduleperiodicrecursive.ts(12,20): error TS2403: Subsequent variable declarations must have the same type. Variable 'SchedulePeriodicRecursive' must be of type 'SchedulePeriodicRecursiveStatic', but here has type 'SchedulePeriodicRecursiveStatic'.
.build/node_modules/rx/ts/core/concurrency/scheduler.ts(62,9): error TS2300: Duplicate identifier 'now'.
.build/node_modules/rx/ts/core/concurrency/virtualtimescheduler.ts(56,9): error TS2300: Duplicate identifier 'isEnabled'.
.build/node_modules/rx/ts/core/disposables/booleandisposable.ts(8,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/core/disposables/booleandisposable.ts(19,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'SingleAssignmentDisposable' must be of type 'SingleAssignmentDisposableStatic', but here has type 'SingleAssignmentDisposableStatic'.
.build/node_modules/rx/ts/core/disposables/booleandisposable.ts(26,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/core/disposables/booleandisposable.ts(37,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'SerialDisposable' must be of type 'SerialDisposableStatic', but here has type 'SerialDisposableStatic'.
.build/node_modules/rx/ts/core/disposables/compositedisposable.ts(35,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'CompositeDisposable' must be of type 'CompositeDisposableStatic', but here has type 'CompositeDisposableStatic'.
.build/node_modules/rx/ts/core/disposables/disposable.ts(8,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/core/disposables/disposable.ts(42,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'Disposable' must be of type 'DisposableStatic', but here has type 'DisposableStatic'.
.build/node_modules/rx/ts/core/disposables/refcountdisposable.ts(12,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/core/disposables/refcountdisposable.ts(30,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'RefCountDisposable' must be of type 'RefCountDisposableStatic', but here has type 'RefCountDisposableStatic'.
.build/node_modules/rx/ts/core/es5.ts(3,17): error TS2300: Duplicate identifier 'ObservableOrPromise'.
.build/node_modules/rx/ts/core/es5.ts(5,17): error TS2300: Duplicate identifier 'ArrayLike'.
.build/node_modules/rx/ts/core/es5.ts(8,17): error TS2300: Duplicate identifier 'ArrayOrIterable'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(8,5): error TS2300: Duplicate identifier '[Symbol.toStringTag]'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(15,5): error TS2300: Duplicate identifier 'prototype'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(43,5): error TS2300: Duplicate identifier 'hasInstance'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(49,5): error TS2300: Duplicate identifier 'isConcatSpreadable'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(55,5): error TS2300: Duplicate identifier 'iterator'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(61,5): error TS2300: Duplicate identifier 'match'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(67,5): error TS2300: Duplicate identifier 'replace'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(73,5): error TS2300: Duplicate identifier 'search'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(79,5): error TS2300: Duplicate identifier 'species'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(85,5): error TS2300: Duplicate identifier 'split'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(91,5): error TS2300: Duplicate identifier 'toPrimitive'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(97,5): error TS2300: Duplicate identifier 'toStringTag'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(103,5): error TS2300: Duplicate identifier 'unscopables'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(108,5): error TS2300: Duplicate identifier 'done'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(109,5): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(136,5): error TS2300: Duplicate identifier 'prototype'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(150,5): error TS2300: Duplicate identifier 'size'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(153,5): error TS2300: Duplicate identifier '[Symbol.toStringTag]'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(159,5): error TS2300: Duplicate identifier 'prototype'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(171,5): error TS2300: Duplicate identifier 'size'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(174,5): error TS2300: Duplicate identifier '[Symbol.toStringTag]'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(180,5): error TS2300: Duplicate identifier 'prototype'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(189,5): error TS2300: Duplicate identifier '[Symbol.toStringTag]'.
.build/node_modules/rx/ts/core/es6-iterable.d.ts(195,5): error TS2300: Duplicate identifier 'prototype'.
.build/node_modules/rx/ts/core/es6-promise.d.ts(34,5): error TS2300: Duplicate identifier '[Symbol.toStringTag]'.
.build/node_modules/rx/ts/core/es6-promise.d.ts(41,5): error TS2300: Duplicate identifier 'prototype'.
.build/node_modules/rx/ts/core/es6-promise.d.ts(94,5): error TS2300: Duplicate identifier '[Symbol.species]'.
.build/node_modules/rx/ts/core/es6.ts(5,17): error TS2300: Duplicate identifier 'ObservableOrPromise'.
.build/node_modules/rx/ts/core/es6.ts(7,17): error TS2300: Duplicate identifier 'ArrayLike'.
.build/node_modules/rx/ts/core/es6.ts(10,17): error TS2300: Duplicate identifier 'ArrayOrIterable'.
.build/node_modules/rx/ts/core/internal/errors.ts(3,53): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/core/internal/errors.ts(6,62): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/core/internal/errors.ts(9,66): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/core/internal/errors.ts(12,60): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/core/internal/errors.ts(15,62): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/core/internal/priorityqueue.ts(6,13): error TS2300: Duplicate identifier 'length'.
.build/node_modules/rx/ts/core/internal/priorityqueue.ts(23,20): error TS2403: Subsequent variable declarations must have the same type. Variable 'PriorityQueue' must be of type 'PriorityQueueStatic', but here has type 'PriorityQueueStatic'.
.build/node_modules/rx/ts/core/joins/plan.ts(2,18): error TS2300: Duplicate identifier 'Plan'.
.build/node_modules/rx/ts/core/linq/groupedobservable.ts(4,9): error TS2300: Duplicate identifier 'key'.
.build/node_modules/rx/ts/core/linq/groupedobservable.ts(5,9): error TS2300: Duplicate identifier 'underlyingObservable'.
.build/node_modules/rx/ts/core/linq/observable/ofarraychanges.ts(4,9): error TS2300: Duplicate identifier 'type'.
.build/node_modules/rx/ts/core/linq/observable/ofarraychanges.ts(5,9): error TS2300: Duplicate identifier 'object'.
.build/node_modules/rx/ts/core/linq/observable/ofarraychanges.ts(6,9): error TS2300: Duplicate identifier 'name'.
.build/node_modules/rx/ts/core/linq/observable/ofarraychanges.ts(7,9): error TS2300: Duplicate identifier 'oldValue'.
.build/node_modules/rx/ts/core/linq/observable/ofarraychanges.ts(8,9): error TS2300: Duplicate identifier 'index'.
.build/node_modules/rx/ts/core/linq/observable/ofarraychanges.ts(9,9): error TS2300: Duplicate identifier 'removed'.
.build/node_modules/rx/ts/core/linq/observable/ofarraychanges.ts(10,9): error TS2300: Duplicate identifier 'added'.
.build/node_modules/rx/ts/core/linq/observable/ofobjectchanges.ts(4,9): error TS2300: Duplicate identifier 'type'.
.build/node_modules/rx/ts/core/linq/observable/ofobjectchanges.ts(5,9): error TS2300: Duplicate identifier 'object'.
.build/node_modules/rx/ts/core/linq/observable/ofobjectchanges.ts(6,9): error TS2300: Duplicate identifier 'name'.
.build/node_modules/rx/ts/core/linq/observable/ofobjectchanges.ts(7,9): error TS2300: Duplicate identifier 'oldValue'.
.build/node_modules/rx/ts/core/linq/observable/timeinterval.ts(5,3): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/core/linq/observable/timeinterval.ts(6,3): error TS2300: Duplicate identifier 'interval'.
.build/node_modules/rx/ts/core/linq/observable/timestamp.ts(5,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/core/linq/observable/timestamp.ts(6,9): error TS2300: Duplicate identifier 'timestamp'.
.build/node_modules/rx/ts/core/notification.ts(40,9): error TS2300: Duplicate identifier 'hasValue'.
.build/node_modules/rx/ts/core/notification.ts(42,9): error TS2300: Duplicate identifier 'kind'.
.build/node_modules/rx/ts/core/notification.ts(43,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/core/notification.ts(44,9): error TS2300: Duplicate identifier 'exception'.
.build/node_modules/rx/ts/core/notification.ts(69,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'Notification' must be of type 'NotificationStatic', but here has type 'NotificationStatic'.
.build/node_modules/rx/ts/core/subjects/anonymoussubject.ts(17,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'AnonymousSubject' must be of type 'AnonymousSubjectStatic', but here has type 'AnonymousSubjectStatic'.
.build/node_modules/rx/ts/core/subjects/asyncsubject.ts(18,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'AsyncSubject' must be of type 'AsyncSubjectStatic', but here has type 'AsyncSubjectStatic'.
.build/node_modules/rx/ts/core/subjects/behaviorsubject.ts(27,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'BehaviorSubject' must be of type 'BehaviorSubjectStatic', but here has type 'BehaviorSubjectStatic'.
.build/node_modules/rx/ts/core/subjects/replaysubject.ts(20,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'ReplaySubject' must be of type 'ReplaySubjectStatic', but here has type 'ReplaySubjectStatic'.
.build/node_modules/rx/ts/core/subjects/subject.ts(17,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/core/subjects/subject.ts(39,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'Subject' must be of type 'SubjectStatic', but here has type 'SubjectStatic'.
.build/node_modules/rx/ts/core/testing/mockobserver.ts(7,9): error TS2300: Duplicate identifier 'messages'.
.build/node_modules/rx/ts/core/testing/mockobserver.ts(14,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'MockObserver' must be of type 'MockObserverStatic', but here has type 'MockObserverStatic'.
.build/node_modules/rx/ts/core/testing/recorded.ts(16,9): error TS2300: Duplicate identifier 'time'.
.build/node_modules/rx/ts/core/testing/recorded.ts(17,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/core/testing/recorded.ts(32,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'Recorded' must be of type 'RecordedStatic', but here has type 'RecordedStatic'.
.build/node_modules/rx/ts/core/testing/subscription.ts(27,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'Subscription' must be of type 'SubscriptionStatic', but here has type 'SubscriptionStatic'.
.build/node_modules/rx/ts/es6-promise.es6.d.ts(34,5): error TS2300: Duplicate identifier '[Symbol.toStringTag]'.
.build/node_modules/rx/ts/es6-promise.es6.d.ts(41,5): error TS2300: Duplicate identifier 'prototype'.
.build/node_modules/rx/ts/es6-promise.es6.d.ts(94,5): error TS2300: Duplicate identifier '[Symbol.species]'.
.build/node_modules/rx/ts/iterable.es6.d.ts(8,5): error TS2300: Duplicate identifier '[Symbol.toStringTag]'.
.build/node_modules/rx/ts/iterable.es6.d.ts(15,5): error TS2300: Duplicate identifier 'prototype'.
.build/node_modules/rx/ts/iterable.es6.d.ts(43,5): error TS2300: Duplicate identifier 'hasInstance'.
.build/node_modules/rx/ts/iterable.es6.d.ts(49,5): error TS2300: Duplicate identifier 'isConcatSpreadable'.
.build/node_modules/rx/ts/iterable.es6.d.ts(55,5): error TS2300: Duplicate identifier 'iterator'.
.build/node_modules/rx/ts/iterable.es6.d.ts(61,5): error TS2300: Duplicate identifier 'match'.
.build/node_modules/rx/ts/iterable.es6.d.ts(67,5): error TS2300: Duplicate identifier 'replace'.
.build/node_modules/rx/ts/iterable.es6.d.ts(73,5): error TS2300: Duplicate identifier 'search'.
.build/node_modules/rx/ts/iterable.es6.d.ts(79,5): error TS2300: Duplicate identifier 'species'.
.build/node_modules/rx/ts/iterable.es6.d.ts(85,5): error TS2300: Duplicate identifier 'split'.
.build/node_modules/rx/ts/iterable.es6.d.ts(91,5): error TS2300: Duplicate identifier 'toPrimitive'.
.build/node_modules/rx/ts/iterable.es6.d.ts(97,5): error TS2300: Duplicate identifier 'toStringTag'.
.build/node_modules/rx/ts/iterable.es6.d.ts(103,5): error TS2300: Duplicate identifier 'unscopables'.
.build/node_modules/rx/ts/iterable.es6.d.ts(108,5): error TS2300: Duplicate identifier 'done'.
.build/node_modules/rx/ts/iterable.es6.d.ts(109,5): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/iterable.es6.d.ts(136,5): error TS2300: Duplicate identifier 'prototype'.
.build/node_modules/rx/ts/iterable.es6.d.ts(150,5): error TS2300: Duplicate identifier 'size'.
.build/node_modules/rx/ts/iterable.es6.d.ts(153,5): error TS2300: Duplicate identifier '[Symbol.toStringTag]'.
.build/node_modules/rx/ts/iterable.es6.d.ts(159,5): error TS2300: Duplicate identifier 'prototype'.
.build/node_modules/rx/ts/iterable.es6.d.ts(171,5): error TS2300: Duplicate identifier 'size'.
.build/node_modules/rx/ts/iterable.es6.d.ts(174,5): error TS2300: Duplicate identifier '[Symbol.toStringTag]'.
.build/node_modules/rx/ts/iterable.es6.d.ts(180,5): error TS2300: Duplicate identifier 'prototype'.
.build/node_modules/rx/ts/iterable.es6.d.ts(189,5): error TS2300: Duplicate identifier '[Symbol.toStringTag]'.
.build/node_modules/rx/ts/iterable.es6.d.ts(195,5): error TS2300: Duplicate identifier 'prototype'.
.build/node_modules/rx/ts/rx.aggregates.d.ts(259,34): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.aggregates.es6.d.ts(284,34): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.all.d.ts(22,22): error TS2320: Interface 'IPromise<T>' cannot simultaneously extend types 'Promise<T>' and 'PromiseLike<T>'.
Named property 'then' of types 'Promise<T>' and 'PromiseLike<T>' are not identical.
.build/node_modules/rx/ts/rx.all.d.ts(35,53): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.all.d.ts(38,62): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.all.d.ts(41,66): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.all.d.ts(44,60): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.all.d.ts(47,62): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.all.d.ts(70,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.all.d.ts(90,9): error TS2300: Duplicate identifier 'empty'.
.build/node_modules/rx/ts/rx.all.d.ts(232,13): error TS2300: Duplicate identifier 'scheduler'.
.build/node_modules/rx/ts/rx.all.d.ts(233,13): error TS2300: Duplicate identifier 'state'.
.build/node_modules/rx/ts/rx.all.d.ts(234,13): error TS2300: Duplicate identifier 'action'.
.build/node_modules/rx/ts/rx.all.d.ts(235,13): error TS2300: Duplicate identifier 'dueTime'.
.build/node_modules/rx/ts/rx.all.d.ts(236,13): error TS2300: Duplicate identifier 'comparer'.
.build/node_modules/rx/ts/rx.all.d.ts(237,13): error TS2300: Duplicate identifier 'disposable'.
.build/node_modules/rx/ts/rx.all.d.ts(255,13): error TS2300: Duplicate identifier 'length'.
.build/node_modules/rx/ts/rx.all.d.ts(269,17): error TS2300: Duplicate identifier 'count'.
.build/node_modules/rx/ts/rx.all.d.ts(314,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.all.d.ts(332,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.all.d.ts(354,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.all.d.ts(433,9): error TS2300: Duplicate identifier 'now'.
.build/node_modules/rx/ts/rx.all.d.ts(545,9): error TS2300: Duplicate identifier 'immediate'.
.build/node_modules/rx/ts/rx.all.d.ts(553,9): error TS2300: Duplicate identifier 'currentThread'.
.build/node_modules/rx/ts/rx.all.d.ts(557,9): error TS2300: Duplicate identifier 'timeout'.
.build/node_modules/rx/ts/rx.all.d.ts(558,9): error TS2300: Duplicate identifier 'default'.
.build/node_modules/rx/ts/rx.all.d.ts(648,9): error TS2300: Duplicate identifier 'hasValue'.
.build/node_modules/rx/ts/rx.all.d.ts(650,9): error TS2300: Duplicate identifier 'kind'.
.build/node_modules/rx/ts/rx.all.d.ts(651,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.all.d.ts(652,9): error TS2300: Duplicate identifier 'exception'.
.build/node_modules/rx/ts/rx.all.d.ts(704,13): error TS2300: Duplicate identifier 'isStopped'.
.build/node_modules/rx/ts/rx.all.d.ts(939,9): error TS2300: Duplicate identifier 'type'.
.build/node_modules/rx/ts/rx.all.d.ts(940,9): error TS2300: Duplicate identifier 'object'.
.build/node_modules/rx/ts/rx.all.d.ts(941,9): error TS2300: Duplicate identifier 'name'.
.build/node_modules/rx/ts/rx.all.d.ts(942,9): error TS2300: Duplicate identifier 'oldValue'.
.build/node_modules/rx/ts/rx.all.d.ts(943,9): error TS2300: Duplicate identifier 'index'.
.build/node_modules/rx/ts/rx.all.d.ts(944,9): error TS2300: Duplicate identifier 'removed'.
.build/node_modules/rx/ts/rx.all.d.ts(945,9): error TS2300: Duplicate identifier 'added'.
.build/node_modules/rx/ts/rx.all.d.ts(958,9): error TS2300: Duplicate identifier 'type'.
.build/node_modules/rx/ts/rx.all.d.ts(959,9): error TS2300: Duplicate identifier 'object'.
.build/node_modules/rx/ts/rx.all.d.ts(960,9): error TS2300: Duplicate identifier 'name'.
.build/node_modules/rx/ts/rx.all.d.ts(961,9): error TS2300: Duplicate identifier 'oldValue'.
.build/node_modules/rx/ts/rx.all.d.ts(3221,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.all.d.ts(3771,18): error TS2300: Duplicate identifier 'Plan'.
.build/node_modules/rx/ts/rx.all.d.ts(4081,3): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.all.d.ts(4082,3): error TS2300: Duplicate identifier 'interval'.
.build/node_modules/rx/ts/rx.all.d.ts(4100,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.all.d.ts(4101,9): error TS2300: Duplicate identifier 'timestamp'.
.build/node_modules/rx/ts/rx.all.d.ts(4762,9): error TS2300: Duplicate identifier 'isEnabled'.
.build/node_modules/rx/ts/rx.all.d.ts(4787,9): error TS2300: Duplicate identifier 'key'.
.build/node_modules/rx/ts/rx.all.d.ts(4788,9): error TS2300: Duplicate identifier 'underlyingObservable'.
.build/node_modules/rx/ts/rx.all.d.ts(4840,23): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.all.d.ts(4841,27): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.all.es6.d.ts(32,53): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(35,62): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(38,66): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(41,60): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(44,62): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(67,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(87,9): error TS2300: Duplicate identifier 'empty'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(229,13): error TS2300: Duplicate identifier 'scheduler'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(230,13): error TS2300: Duplicate identifier 'state'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(231,13): error TS2300: Duplicate identifier 'action'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(232,13): error TS2300: Duplicate identifier 'dueTime'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(233,13): error TS2300: Duplicate identifier 'comparer'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(234,13): error TS2300: Duplicate identifier 'disposable'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(252,13): error TS2300: Duplicate identifier 'length'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(266,17): error TS2300: Duplicate identifier 'count'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(311,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(329,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(351,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(430,9): error TS2300: Duplicate identifier 'now'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(542,9): error TS2300: Duplicate identifier 'immediate'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(550,9): error TS2300: Duplicate identifier 'currentThread'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(554,9): error TS2300: Duplicate identifier 'timeout'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(555,9): error TS2300: Duplicate identifier 'default'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(645,9): error TS2300: Duplicate identifier 'hasValue'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(647,9): error TS2300: Duplicate identifier 'kind'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(648,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(649,9): error TS2300: Duplicate identifier 'exception'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(701,13): error TS2300: Duplicate identifier 'isStopped'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(936,9): error TS2300: Duplicate identifier 'type'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(937,9): error TS2300: Duplicate identifier 'object'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(938,9): error TS2300: Duplicate identifier 'name'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(939,9): error TS2300: Duplicate identifier 'oldValue'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(940,9): error TS2300: Duplicate identifier 'index'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(941,9): error TS2300: Duplicate identifier 'removed'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(942,9): error TS2300: Duplicate identifier 'added'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(955,9): error TS2300: Duplicate identifier 'type'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(956,9): error TS2300: Duplicate identifier 'object'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(957,9): error TS2300: Duplicate identifier 'name'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(958,9): error TS2300: Duplicate identifier 'oldValue'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(3243,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(3793,18): error TS2300: Duplicate identifier 'Plan'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(4103,3): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(4104,3): error TS2300: Duplicate identifier 'interval'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(4122,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(4123,9): error TS2300: Duplicate identifier 'timestamp'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(4784,9): error TS2300: Duplicate identifier 'isEnabled'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(4809,9): error TS2300: Duplicate identifier 'key'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(4810,9): error TS2300: Duplicate identifier 'underlyingObservable'.
.build/node_modules/rx/ts/rx.all.es6.d.ts(4862,23): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.all.es6.d.ts(4863,27): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.async.d.ts(73,29): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.async.es6.d.ts(73,29): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.backpressure.d.ts(21,36): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.backpressure.es6.d.ts(21,36): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.binding.d.ts(13,31): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.binding.es6.d.ts(13,31): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.coincidence.d.ts(181,9): error TS2300: Duplicate identifier 'key'.
.build/node_modules/rx/ts/rx.coincidence.d.ts(182,9): error TS2300: Duplicate identifier 'underlyingObservable'.
.build/node_modules/rx/ts/rx.coincidence.d.ts(186,35): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.coincidence.es6.d.ts(181,9): error TS2300: Duplicate identifier 'key'.
.build/node_modules/rx/ts/rx.coincidence.es6.d.ts(182,9): error TS2300: Duplicate identifier 'underlyingObservable'.
.build/node_modules/rx/ts/rx.coincidence.es6.d.ts(186,35): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.core.binding.d.ts(4,36): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.core.binding.es6.d.ts(4,36): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.core.d.ts(40,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.core.d.ts(60,9): error TS2300: Duplicate identifier 'empty'.
.build/node_modules/rx/ts/rx.core.d.ts(239,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.core.d.ts(257,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.core.d.ts(329,9): error TS2300: Duplicate identifier 'now'.
.build/node_modules/rx/ts/rx.core.d.ts(344,13): error TS2300: Duplicate identifier 'scheduler'.
.build/node_modules/rx/ts/rx.core.d.ts(345,13): error TS2300: Duplicate identifier 'state'.
.build/node_modules/rx/ts/rx.core.d.ts(346,13): error TS2300: Duplicate identifier 'action'.
.build/node_modules/rx/ts/rx.core.d.ts(347,13): error TS2300: Duplicate identifier 'dueTime'.
.build/node_modules/rx/ts/rx.core.d.ts(348,13): error TS2300: Duplicate identifier 'comparer'.
.build/node_modules/rx/ts/rx.core.d.ts(349,13): error TS2300: Duplicate identifier 'disposable'.
.build/node_modules/rx/ts/rx.core.d.ts(447,9): error TS2300: Duplicate identifier 'immediate'.
.build/node_modules/rx/ts/rx.core.d.ts(455,9): error TS2300: Duplicate identifier 'currentThread'.
.build/node_modules/rx/ts/rx.core.d.ts(459,9): error TS2300: Duplicate identifier 'timeout'.
.build/node_modules/rx/ts/rx.core.d.ts(460,9): error TS2300: Duplicate identifier 'default'.
.build/node_modules/rx/ts/rx.core.d.ts(541,13): error TS2300: Duplicate identifier 'isStopped'.
.build/node_modules/rx/ts/rx.core.d.ts(612,23): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.core.es6.d.ts(37,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(57,9): error TS2300: Duplicate identifier 'empty'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(236,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(254,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(326,9): error TS2300: Duplicate identifier 'now'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(341,13): error TS2300: Duplicate identifier 'scheduler'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(342,13): error TS2300: Duplicate identifier 'state'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(343,13): error TS2300: Duplicate identifier 'action'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(344,13): error TS2300: Duplicate identifier 'dueTime'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(345,13): error TS2300: Duplicate identifier 'comparer'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(346,13): error TS2300: Duplicate identifier 'disposable'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(444,9): error TS2300: Duplicate identifier 'immediate'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(452,9): error TS2300: Duplicate identifier 'currentThread'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(456,9): error TS2300: Duplicate identifier 'timeout'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(457,9): error TS2300: Duplicate identifier 'default'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(538,13): error TS2300: Duplicate identifier 'isStopped'.
.build/node_modules/rx/ts/rx.core.es6.d.ts(609,23): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.core.testing.d.ts(6,13): error TS2300: Duplicate identifier 'length'.
.build/node_modules/rx/ts/rx.core.testing.d.ts(20,17): error TS2300: Duplicate identifier 'count'.
.build/node_modules/rx/ts/rx.core.testing.d.ts(77,9): error TS2300: Duplicate identifier 'isEnabled'.
.build/node_modules/rx/ts/rx.core.testing.d.ts(127,9): error TS2300: Duplicate identifier 'time'.
.build/node_modules/rx/ts/rx.core.testing.d.ts(128,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.core.testing.d.ts(216,9): error TS2300: Duplicate identifier 'messages'.
.build/node_modules/rx/ts/rx.core.testing.d.ts(293,36): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.core.testing.es6.d.ts(6,13): error TS2300: Duplicate identifier 'length'.
.build/node_modules/rx/ts/rx.core.testing.es6.d.ts(20,17): error TS2300: Duplicate identifier 'count'.
.build/node_modules/rx/ts/rx.core.testing.es6.d.ts(77,9): error TS2300: Duplicate identifier 'isEnabled'.
.build/node_modules/rx/ts/rx.core.testing.es6.d.ts(127,9): error TS2300: Duplicate identifier 'time'.
.build/node_modules/rx/ts/rx.core.testing.es6.d.ts(128,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.core.testing.es6.d.ts(216,9): error TS2300: Duplicate identifier 'messages'.
.build/node_modules/rx/ts/rx.core.testing.es6.d.ts(293,36): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.d.ts(35,53): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.d.ts(38,62): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.d.ts(41,66): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.d.ts(44,60): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.d.ts(47,62): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.d.ts(70,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.d.ts(90,9): error TS2300: Duplicate identifier 'empty'.
.build/node_modules/rx/ts/rx.d.ts(269,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.d.ts(287,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.d.ts(309,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.d.ts(388,9): error TS2300: Duplicate identifier 'now'.
.build/node_modules/rx/ts/rx.d.ts(403,13): error TS2300: Duplicate identifier 'scheduler'.
.build/node_modules/rx/ts/rx.d.ts(404,13): error TS2300: Duplicate identifier 'state'.
.build/node_modules/rx/ts/rx.d.ts(405,13): error TS2300: Duplicate identifier 'action'.
.build/node_modules/rx/ts/rx.d.ts(406,13): error TS2300: Duplicate identifier 'dueTime'.
.build/node_modules/rx/ts/rx.d.ts(407,13): error TS2300: Duplicate identifier 'comparer'.
.build/node_modules/rx/ts/rx.d.ts(408,13): error TS2300: Duplicate identifier 'disposable'.
.build/node_modules/rx/ts/rx.d.ts(522,9): error TS2300: Duplicate identifier 'immediate'.
.build/node_modules/rx/ts/rx.d.ts(530,9): error TS2300: Duplicate identifier 'currentThread'.
.build/node_modules/rx/ts/rx.d.ts(534,9): error TS2300: Duplicate identifier 'timeout'.
.build/node_modules/rx/ts/rx.d.ts(535,9): error TS2300: Duplicate identifier 'default'.
.build/node_modules/rx/ts/rx.d.ts(625,9): error TS2300: Duplicate identifier 'hasValue'.
.build/node_modules/rx/ts/rx.d.ts(627,9): error TS2300: Duplicate identifier 'kind'.
.build/node_modules/rx/ts/rx.d.ts(628,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.d.ts(629,9): error TS2300: Duplicate identifier 'exception'.
.build/node_modules/rx/ts/rx.d.ts(681,13): error TS2300: Duplicate identifier 'isStopped'.
.build/node_modules/rx/ts/rx.d.ts(2489,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.d.ts(2547,23): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.d.ts(2548,23): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.es6.d.ts(32,53): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.es6.d.ts(35,62): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.es6.d.ts(38,66): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.es6.d.ts(41,60): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.es6.d.ts(44,62): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.es6.d.ts(67,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.es6.d.ts(87,9): error TS2300: Duplicate identifier 'empty'.
.build/node_modules/rx/ts/rx.es6.d.ts(266,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.es6.d.ts(284,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.es6.d.ts(306,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.es6.d.ts(385,9): error TS2300: Duplicate identifier 'now'.
.build/node_modules/rx/ts/rx.es6.d.ts(400,13): error TS2300: Duplicate identifier 'scheduler'.
.build/node_modules/rx/ts/rx.es6.d.ts(401,13): error TS2300: Duplicate identifier 'state'.
.build/node_modules/rx/ts/rx.es6.d.ts(402,13): error TS2300: Duplicate identifier 'action'.
.build/node_modules/rx/ts/rx.es6.d.ts(403,13): error TS2300: Duplicate identifier 'dueTime'.
.build/node_modules/rx/ts/rx.es6.d.ts(404,13): error TS2300: Duplicate identifier 'comparer'.
.build/node_modules/rx/ts/rx.es6.d.ts(405,13): error TS2300: Duplicate identifier 'disposable'.
.build/node_modules/rx/ts/rx.es6.d.ts(519,9): error TS2300: Duplicate identifier 'immediate'.
.build/node_modules/rx/ts/rx.es6.d.ts(527,9): error TS2300: Duplicate identifier 'currentThread'.
.build/node_modules/rx/ts/rx.es6.d.ts(531,9): error TS2300: Duplicate identifier 'timeout'.
.build/node_modules/rx/ts/rx.es6.d.ts(532,9): error TS2300: Duplicate identifier 'default'.
.build/node_modules/rx/ts/rx.es6.d.ts(622,9): error TS2300: Duplicate identifier 'hasValue'.
.build/node_modules/rx/ts/rx.es6.d.ts(624,9): error TS2300: Duplicate identifier 'kind'.
.build/node_modules/rx/ts/rx.es6.d.ts(625,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.es6.d.ts(626,9): error TS2300: Duplicate identifier 'exception'.
.build/node_modules/rx/ts/rx.es6.d.ts(678,13): error TS2300: Duplicate identifier 'isStopped'.
.build/node_modules/rx/ts/rx.es6.d.ts(2486,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.es6.d.ts(2544,23): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.es6.d.ts(2545,23): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.experimental.d.ts(423,36): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.experimental.es6.d.ts(423,36): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.joinpatterns.d.ts(3,18): error TS2300: Duplicate identifier 'Plan'.
.build/node_modules/rx/ts/rx.joinpatterns.d.ts(143,36): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.joinpatterns.es6.d.ts(3,18): error TS2300: Duplicate identifier 'Plan'.
.build/node_modules/rx/ts/rx.joinpatterns.es6.d.ts(143,36): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.lite.d.ts(35,53): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.lite.d.ts(38,62): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.lite.d.ts(41,66): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.lite.d.ts(44,60): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.lite.d.ts(47,62): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.lite.d.ts(70,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.lite.d.ts(90,9): error TS2300: Duplicate identifier 'empty'.
.build/node_modules/rx/ts/rx.lite.d.ts(269,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.lite.d.ts(287,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.lite.d.ts(309,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.lite.d.ts(388,9): error TS2300: Duplicate identifier 'now'.
.build/node_modules/rx/ts/rx.lite.d.ts(403,13): error TS2300: Duplicate identifier 'scheduler'.
.build/node_modules/rx/ts/rx.lite.d.ts(404,13): error TS2300: Duplicate identifier 'state'.
.build/node_modules/rx/ts/rx.lite.d.ts(405,13): error TS2300: Duplicate identifier 'action'.
.build/node_modules/rx/ts/rx.lite.d.ts(406,13): error TS2300: Duplicate identifier 'dueTime'.
.build/node_modules/rx/ts/rx.lite.d.ts(407,13): error TS2300: Duplicate identifier 'comparer'.
.build/node_modules/rx/ts/rx.lite.d.ts(408,13): error TS2300: Duplicate identifier 'disposable'.
.build/node_modules/rx/ts/rx.lite.d.ts(494,9): error TS2300: Duplicate identifier 'immediate'.
.build/node_modules/rx/ts/rx.lite.d.ts(502,9): error TS2300: Duplicate identifier 'currentThread'.
.build/node_modules/rx/ts/rx.lite.d.ts(518,9): error TS2300: Duplicate identifier 'timeout'.
.build/node_modules/rx/ts/rx.lite.d.ts(519,9): error TS2300: Duplicate identifier 'default'.
.build/node_modules/rx/ts/rx.lite.d.ts(609,9): error TS2300: Duplicate identifier 'hasValue'.
.build/node_modules/rx/ts/rx.lite.d.ts(611,9): error TS2300: Duplicate identifier 'kind'.
.build/node_modules/rx/ts/rx.lite.d.ts(612,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.lite.d.ts(613,9): error TS2300: Duplicate identifier 'exception'.
.build/node_modules/rx/ts/rx.lite.d.ts(661,13): error TS2300: Duplicate identifier 'isStopped'.
.build/node_modules/rx/ts/rx.lite.d.ts(2462,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.lite.d.ts(2799,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.lite.d.ts(2800,9): error TS2300: Duplicate identifier 'timestamp'.
.build/node_modules/rx/ts/rx.lite.d.ts(3102,23): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.lite.d.ts(3103,28): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(32,53): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(35,62): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(38,66): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(41,60): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(44,62): error TS2300: Duplicate identifier 'message'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(67,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(87,9): error TS2300: Duplicate identifier 'empty'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(266,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(284,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(306,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(385,9): error TS2300: Duplicate identifier 'now'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(400,13): error TS2300: Duplicate identifier 'scheduler'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(401,13): error TS2300: Duplicate identifier 'state'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(402,13): error TS2300: Duplicate identifier 'action'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(403,13): error TS2300: Duplicate identifier 'dueTime'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(404,13): error TS2300: Duplicate identifier 'comparer'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(405,13): error TS2300: Duplicate identifier 'disposable'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(491,9): error TS2300: Duplicate identifier 'immediate'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(499,9): error TS2300: Duplicate identifier 'currentThread'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(515,9): error TS2300: Duplicate identifier 'timeout'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(516,9): error TS2300: Duplicate identifier 'default'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(606,9): error TS2300: Duplicate identifier 'hasValue'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(608,9): error TS2300: Duplicate identifier 'kind'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(609,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(610,9): error TS2300: Duplicate identifier 'exception'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(658,13): error TS2300: Duplicate identifier 'isStopped'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(2459,9): error TS2300: Duplicate identifier 'isDisposed'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(2796,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(2797,9): error TS2300: Duplicate identifier 'timestamp'.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(3099,23): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.lite.es6.d.ts(3100,28): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.lite.extras.d.ts(225,35): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.lite.extras.es6.d.ts(225,35): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.sorting.d.ts(22,31): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.sorting.es6.d.ts(22,31): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.testing.d.ts(44,9): error TS2300: Duplicate identifier 'time'.
.build/node_modules/rx/ts/rx.testing.d.ts(45,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.testing.d.ts(133,9): error TS2300: Duplicate identifier 'messages'.
.build/node_modules/rx/ts/rx.testing.d.ts(193,9): error TS2300: Duplicate identifier 'isEnabled'.
.build/node_modules/rx/ts/rx.testing.d.ts(270,31): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.testing.es6.d.ts(44,9): error TS2300: Duplicate identifier 'time'.
.build/node_modules/rx/ts/rx.testing.es6.d.ts(45,9): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.testing.es6.d.ts(133,9): error TS2300: Duplicate identifier 'messages'.
.build/node_modules/rx/ts/rx.testing.es6.d.ts(193,9): error TS2300: Duplicate identifier 'isEnabled'.
.build/node_modules/rx/ts/rx.testing.es6.d.ts(270,31): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.time.d.ts(64,3): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.time.d.ts(65,3): error TS2300: Duplicate identifier 'interval'.
.build/node_modules/rx/ts/rx.time.d.ts(283,28): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.time.es6.d.ts(64,3): error TS2300: Duplicate identifier 'value'.
.build/node_modules/rx/ts/rx.time.es6.d.ts(65,3): error TS2300: Duplicate identifier 'interval'.
.build/node_modules/rx/ts/rx.time.es6.d.ts(283,28): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.virtualtime.d.ts(6,13): error TS2300: Duplicate identifier 'length'.
.build/node_modules/rx/ts/rx.virtualtime.d.ts(20,17): error TS2300: Duplicate identifier 'count'.
.build/node_modules/rx/ts/rx.virtualtime.d.ts(77,9): error TS2300: Duplicate identifier 'isEnabled'.
.build/node_modules/rx/ts/rx.virtualtime.d.ts(100,35): error TS2300: Duplicate identifier 'export='.
.build/node_modules/rx/ts/rx.virtualtime.es6.d.ts(6,13): error TS2300: Duplicate identifier 'length'.
.build/node_modules/rx/ts/rx.virtualtime.es6.d.ts(20,17): error TS2300: Duplicate identifier 'count'.
.build/node_modules/rx/ts/rx.virtualtime.es6.d.ts(77,9): error TS2300: Duplicate identifier 'isEnabled'.
.build/node_modules/rx/ts/rx.virtualtime.es6.d.ts(100,35): error TS2300: Duplicate identifier 'export='.

Issue 2:
Problem

Currently TypeScript compiler accepts a single compiler option, target, which specify both version of library to be included during compilation and version of JavaScript for emitting code together.

The behaviour presents limitations in two parts of the pipeline: consuming the default library and granularly controlling how JavaScript will be emitted (e.g. what features to be down-level etc.).

The proposal will mainly focus on the first issue regarding using the default library.

The current behavior of target option doesn't allow users to have a fine-grain control on what library or feature of the library to be included, and user cannot independently control library's version from emit JavaScript version. As summarized in #4692 Proposal: Granular Targeting and #4168 Normalize our lib files by compiler setting

Emit ES5 JavaScript while using ES6 library during design-time (and vice-versa).

Include only sub-part of the ES6/ESnext library

Modifying default libraries can conflict with users-defined ones.

Using host-specific library.

Workaround

As @yortus points out in the #4692 Proposal: Granular Targeting , there are possible workarounds for above issues by maintaing customized version of the default library while target another version of emit JavaScript.

Such approach is cumbersome to maintain and consume any necessary fixes of the default library.

Related Issues:

#4692 Proposal: Granular Targeting

#4168 Normalize our lib files by compiler settings

#3215 New APIs added to lib.d.ts may break client codes. Allow duplicated members in interfaces? Make lib.d.ts overridable?

#3005 Using ES6 type default library when targetting ES5 output

Proposed Solution

There are two parts to the proposed solution:

Introducing a new compiler flag --lib. The flag will be used to allow users to granularly control the default library.

Note: target flag will remain. Its behaviors with --lib flag will be discussed below.

Breaking down the default library into smaller files, especially ES6 library and any future JavaScript library.

Compiler Flag --lib

The flag's options (see below for the full list) allows users to specify what library to be included into the compilation.

The flag's options can be separated into following categories:

JavaScript only:

es3

es5

es6

Host only:

node

dom

dom.iterable

webworker

scripthost

ES6 or ESNext by-features options:

es6.array

es6.collection

es6.function

es6.generator

es6.iterable

es6.math

es6.number

es6.object

es6.promise

es6.proxy

es6.reflect

es6.regexp

es6.string

es6.symbol

es6.symbol.wellknown

es7.array.include

The --lib flag is an optional flag and multiple options can be used in combination (e.g --lib es6,dom.iterable) and each option will be mapped to associated library.

So in this example, files: lib.es6.d.ts and lib.dom.iterable.d.ts will be loaded into the compilation..

When --lib is specified, --target will be used solely to indicate version of emitting JavaScript.

In additional to above behavior, we still need to determine what to be included when --lib is not specified, should it remain the same, including version of library specifying by --target and all host libraries, or including every library. -> _Current implementation is to include version of the library using --target

The proposal will only affect when the compiler attempts to create compilation in Program.ts. Other parts of the pipeline will not be affected by the proposal.

Usage:

The --lib flag will take an options in the form of string separated by comma. Space will not be allowed as a separator. This rule apply to both command line and tsconfig

Valid

tsc --target es5 --lib es6
tsc --target es5 --lib es5,es6.array

"compilerOptions": {
...
"lib": "es5,es6.array"
}

Invalid command-line

tsc --target es5--lib es5, es6.array // es6.array will be considered a file-name
tsc --target es5 --lib es5 es6.array // es6.array will be considered a file-name

"compilerOptions": {
...
"lib": "es5, es6.array"
}

Working Items:

Breaking up the library (PR #6990, this PR is folded into #6974)

Adding compiler options (PR #6974)

Language Service support in VS

Add node.d.ts and browser.d.ts