Merge pull request #1383 from dandean/patch-1

This commit is contained in:
Brian Donovan 2024-05-31 07:43:54 -07:00 committed by GitHub
commit 6f7466ea8e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 0 deletions

View file

@ -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 {

View file

@ -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() {}",