UNPKG

typescript-language-server

Version:

Language Server Protocol (LSP) implementation for TypeScript using tsserver

17 lines 570 B
/* * Copyright (C) 2017, 2018 TypeFox and others. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 */ export class Deferred { constructor() { this.resolve = (_) => { }; this.reject = (_) => { }; this.promise = new Promise((resolve, reject) => { this.resolve = resolve; this.reject = reject; }); } } //# sourceMappingURL=utils.js.map