12 lines
280 B
TypeScript
Executable File
12 lines
280 B
TypeScript
Executable File
/// <reference path="./disposables/disposable.ts" />
|
|
module Rx {
|
|
export interface Observer<T> {
|
|
makeSafe(disposable: IDisposable): Observer<T>;
|
|
}
|
|
}
|
|
|
|
(function() {
|
|
var observer: Rx.Observer<boolean>;
|
|
observer = observer.makeSafe(Rx.Disposable.create(() => {}));
|
|
});
|