Skip to content

Commit

Permalink
chore: typo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nmn committed Jan 2, 2025
1 parent b796e1c commit 44428fc
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,15 +236,15 @@ declare export class Binding {
type _VisitorNodeKeys<S: object> = {
+[K in keyof t._NodeMap]: ?VisitNode<S, t._NodeMap[K]>,
};
type _VistorAliases<S: object> = {
type _VisitorAliases<S: object> = {
+[K in keyof t.Aliases]: ?VisitNode<S, t.Aliases[K]>,
};

export type Visitor<S: object = object> = $ReadOnly<
Partial<{
...VisitNodeObject<S, Node>,
..._VisitorNodeKeys<S>,
..._VistorAliases<S>,
..._VisitorAliases<S>,
}>,
>;

Expand Down
4 changes: 2 additions & 2 deletions packages/cli/flow_modules/@babel/traverse/index.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -236,15 +236,15 @@ declare export class Binding {
type _VisitorNodeKeys<S: object> = {
+[K in keyof t._NodeMap]: ?VisitNode<S, t._NodeMap[K]>,
};
type _VistorAliases<S: object> = {
type _VisitorAliases<S: object> = {
+[K in keyof t.Aliases]: ?VisitNode<S, t.Aliases[K]>,
};

export type Visitor<S: object = object> = $ReadOnly<
Partial<{
...VisitNodeObject<S, Node>,
..._VisitorNodeKeys<S>,
..._VistorAliases<S>,
..._VisitorAliases<S>,
}>,
>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,15 +235,15 @@ declare export class Binding {
type _VisitorNodeKeys<S: object> = {
+[K in keyof t._NodeMap]: ?VisitNode<S, t._NodeMap[K]>,
};
type _VistorAliases<S: object> = {
type _VisitorAliases<S: object> = {
+[K in keyof t.Aliases]: ?VisitNode<S, t.Aliases[K]>,
};

export type Visitor<S: object = object> = $ReadOnly<
Partial<{
...VisitNodeObject<S, Node>,
..._VisitorNodeKeys<S>,
..._VistorAliases<S>,
..._VisitorAliases<S>,
}>,
>;

Expand Down Expand Up @@ -307,8 +307,8 @@ declare export class NodePath<+T: Node = Node> {
type: T extends null | void
? void
: T extends Node
? T['type']
: string | void;
? T['type']
: string | void;

typeAnnotation: { ... };

Expand Down Expand Up @@ -996,7 +996,7 @@ export type NodePathResult<T: Node | $ReadOnlyArray<Node>> =
T extends $ReadOnlyArray<infer TNode>
? $ReadOnlyArray<NodePath<TNode>>
: T extends null | void
? void
: T extends Node
? NodePath<T>
: T;
? void
: T extends Node
? NodePath<T>
: T;
Original file line number Diff line number Diff line change
Expand Up @@ -235,15 +235,15 @@ declare export class Binding {
type _VisitorNodeKeys<S: object> = {
+[K in keyof t._NodeMap]: ?VisitNode<S, t._NodeMap[K]>,
};
type _VistorAliases<S: object> = {
type _VisitorAliases<S: object> = {
+[K in keyof t.Aliases]: ?VisitNode<S, t.Aliases[K]>,
};

export type Visitor<S: object = object> = $ReadOnly<
Partial<{
...VisitNodeObject<S, Node>,
..._VisitorNodeKeys<S>,
..._VistorAliases<S>,
..._VisitorAliases<S>,
}>,
>;

Expand Down Expand Up @@ -307,8 +307,8 @@ declare export class NodePath<+T: Node = Node> {
type: T extends null | void
? void
: T extends Node
? T['type']
: string | void;
? T['type']
: string | void;

typeAnnotation: { ... };

Expand Down Expand Up @@ -996,7 +996,7 @@ export type NodePathResult<T: Node | $ReadOnlyArray<Node>> =
T extends $ReadOnlyArray<infer TNode>
? $ReadOnlyArray<NodePath<TNode>>
: T extends null | void
? void
: T extends Node
? NodePath<T>
: T;
? void
: T extends Node
? NodePath<T>
: T;

0 comments on commit 44428fc

Please sign in to comment.