Merge pull request #134 from vjeux/generics
Support method generics on babylon parser
This commit is contained in:
commit
bbe2524dab
1 file changed
+4
@@ -1811,6 +1811,10 @@ function printObjectMethod(path, options, print) {
|
||||
parts.push(key);
|
||||
}
|
||||
|
||||
if (objMethod.typeParameters) {
|
||||
parts.push(path.call(print, "typeParameters"));
|
||||
}
|
||||
|
||||
parts.push(
|
||||
multilineGroup(concat([
|
||||
printFunctionParams(path, print, options),
|
||||
|
||||
Reference in new issue
Block a user