Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions flow-typed/npm/babel-traverse_v7.x.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ declare module '@babel/traverse' {

parentKey: string;
scope: Scope;
type: null | $PropertyType<BabelNode, 'type'>;
type: null | BabelNode['type'];
inList: boolean;
typeAnnotation?: BabelNodeTypeAnnotation;

Expand Down Expand Up @@ -429,7 +429,7 @@ declare module '@babel/traverse' {
*/
isDescendant(maybeAncestor: NodePath<>): boolean;

inType(...candidateTypes: Array<$PropertyType<BabelNode, 'type'>>): boolean;
inType(...candidateTypes: Array<BabelNode['type']>): boolean;

// _inference

Expand Down Expand Up @@ -585,7 +585,7 @@ declare module '@babel/traverse' {
* Check the type against our stored internal type of the node. This is handy when a node has
* been removed yet we still internally know the type and need it to calculate node replacement.
*/
isNodeType(type: $PropertyType<BabelNode, 'type'>): boolean;
isNodeType(type: BabelNode['type']): boolean;

/**
* This checks whether or not we're in one of the following positions:
Expand Down
4 changes: 1 addition & 3 deletions flow-typed/npm/babel_v7.x.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

declare type BabelNode_DEPRECATED = any;

type _BabelSourceMap = $ReadOnly<{
file?: string,
mappings: string,
Expand Down Expand Up @@ -833,7 +831,7 @@ declare module '@babel/core' {
*/
wrapPluginVisitorMethod?: (
key: string,
nodeType: $PropertyType<BabelNode, 'type'>,
nodeType: BabelNode['type'],
fn: Function,
) => Function,

Expand Down