Merge pull request #1383 from dandean/patch-1
This commit is contained in:
commit
6f7466ea8e
2 changed files with 13 additions and 0 deletions
|
|
@ -2333,6 +2333,12 @@ function genericPrintNoParens(path: any, options: any, print: any) {
|
|||
return concat(parts);
|
||||
|
||||
case "TSMethodSignature":
|
||||
if (n.kind === "get") {
|
||||
parts.push("get ");
|
||||
} else if (n.kind === "set") {
|
||||
parts.push("set ");
|
||||
}
|
||||
|
||||
if (n.computed) {
|
||||
parts.push("[", path.call(print, "key"), "]");
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -251,6 +251,13 @@ const nodeMajorVersion = parseInt(process.versions.node, 10);
|
|||
"}",
|
||||
]);
|
||||
|
||||
check([
|
||||
"interface LabelledContainer<T> {",
|
||||
" get label(): string;",
|
||||
" set label(a: string);",
|
||||
"}",
|
||||
]);
|
||||
|
||||
check([
|
||||
"class Button extends Control<T, U> implements SelectableControl<T, U>, ClickableControl<U> {",
|
||||
" select() {}",
|
||||
|
|
|
|||
Loading…
Reference in a new issue