feat: add support for TS 2.2

This commit is contained in:
Victor Berchet
2017-04-14 16:04:59 -07:00
committed by Tobias Bosch
parent bccfaa46ec
commit 3c8a61e40c
4 changed files with 95 additions and 50 deletions

View File

@ -1,5 +1,4 @@
import * as fs from 'fs';
import * as path from 'path';
import * as ts from 'typescript';
export interface Directory { [name: string]: (Directory|string); }
@ -127,7 +126,8 @@ export class MockSymbol implements ts.Symbol {
getName(): string { return this.name; }
getDeclarations(): ts.Declaration[] { return [this.node]; }
getDocumentationComment(): ts.SymbolDisplayPart[] { return []; }
getJsDocTags(): ts.JSDocTagInfo[]{return []};
// TODO(vicb): removed in TS 2.2
getJsDocTags(): any[]{return []};
static of (name: string): MockSymbol { return new MockSymbol(name); }
}