prepare for ts 3.2
This commit is contained in:
parent
5fc60ec679
commit
237b77bac9
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ export function combinedDisposable(disposables: IDisposable[]): IDisposable {
|
|||
export const EmptyDisposable = toDisposable(() => null);
|
||||
|
||||
export function fireEvent<T>(event: Event<T>): Event<T> {
|
||||
return (listener, thisArgs = null, disposables?) => event(_ => listener.call(thisArgs), null, disposables);
|
||||
return (listener, thisArgs = null, disposables?) => event(_ => (listener as any).call(thisArgs), null, disposables);
|
||||
}
|
||||
|
||||
export function mapEvent<I, O>(event: Event<I>, map: (i: I) => O): Event<O> {
|
||||
|
|
Loading…
Reference in a new issue