Added more types to API signatures (#5733) [skip ci]
This commit is contained in:
parent
943b7371a1
commit
8facda4505
@ -22,7 +22,7 @@ export function getStatementParent(): ?NodePath {
|
||||
return path;
|
||||
}
|
||||
|
||||
export function getOpposite() {
|
||||
export function getOpposite() : ?NodePath {
|
||||
if (this.key === "left") {
|
||||
return this.getSibling("right");
|
||||
} else if (this.key === "right") {
|
||||
@ -148,11 +148,11 @@ export function _getPattern(parts, context) {
|
||||
return path;
|
||||
}
|
||||
|
||||
export function getBindingIdentifiers(duplicates?) {
|
||||
export function getBindingIdentifiers(duplicates?): Object {
|
||||
return t.getBindingIdentifiers(this.node, duplicates);
|
||||
}
|
||||
|
||||
export function getOuterBindingIdentifiers(duplicates?) {
|
||||
export function getOuterBindingIdentifiers(duplicates?): Object {
|
||||
return t.getOuterBindingIdentifiers(this.node, duplicates);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user