99
1010import type { ReactElement , Source } from 'shared/ReactElementType' ;
1111import type { ReactFragment , ReactPortal , RefObject } from 'shared/ReactTypes' ;
12- import type { TypeOfWork } from 'shared/ReactTypeOfWork ' ;
12+ import type { WorkTag } from 'shared/ReactWorkTags ' ;
1313import type { TypeOfMode } from './ReactTypeOfMode' ;
14- import type { TypeOfSideEffect } from 'shared/ReactTypeOfSideEffect ' ;
14+ import type { SideEffectTag } from 'shared/ReactSideEffectTags ' ;
1515import type { ExpirationTime } from './ReactFiberExpirationTime' ;
1616import type { UpdateQueue } from './ReactUpdateQueue' ;
1717import type { ContextDependency } from './ReactFiberNewContext' ;
1818
1919import invariant from 'shared/invariant' ;
2020import { enableProfilerTimer } from 'shared/ReactFeatureFlags' ;
21- import { NoEffect } from 'shared/ReactTypeOfSideEffect ' ;
21+ import { NoEffect } from 'shared/ReactSideEffectTags ' ;
2222import {
2323 IndeterminateComponent ,
2424 ClassComponent ,
@@ -36,7 +36,7 @@ import {
3636 FunctionalComponentLazy ,
3737 ClassComponentLazy ,
3838 ForwardRefLazy ,
39- } from 'shared/ReactTypeOfWork ' ;
39+ } from 'shared/ReactWorkTags ' ;
4040import getComponentName from 'shared/getComponentName' ;
4141
4242import { isDevToolsPresent } from './ReactFiberDevToolsHook' ;
@@ -86,7 +86,7 @@ export type Fiber = {|
8686 // minimize the number of objects created during the initial render.
8787
8888 // Tag identifying the type of fiber.
89- tag : TypeOfWork ,
89+ tag : WorkTag ,
9090
9191 // Unique identifier of this child.
9292 key : null | string ,
@@ -140,7 +140,7 @@ export type Fiber = {|
140140 mode : TypeOfMode ,
141141
142142 // Effect
143- effectTag : TypeOfSideEffect ,
143+ effectTag : SideEffectTag ,
144144
145145 // Singly linked list fast path to the next fiber with side-effects.
146146 nextEffect : Fiber | null ,
@@ -201,7 +201,7 @@ if (__DEV__) {
201201}
202202
203203function FiberNode (
204- tag : TypeOfWork ,
204+ tag : WorkTag ,
205205 pendingProps : mixed ,
206206 key : null | string ,
207207 mode : TypeOfMode ,
@@ -272,7 +272,7 @@ function FiberNode(
272272// 5) It should be easy to port this to a C struct and keep a C implementation
273273// compatible.
274274const createFiber = function (
275- tag : TypeOfWork ,
275+ tag : WorkTag ,
276276 pendingProps : mixed ,
277277 key : null | string ,
278278 mode : TypeOfMode ,
@@ -294,7 +294,7 @@ function shouldConstruct(Component: Function) {
294294export function resolveLazyComponentTag (
295295 fiber : Fiber ,
296296 Component : Function ,
297- ) : TypeOfWork {
297+ ) : WorkTag {
298298 if ( typeof Component === 'function' ) {
299299 return shouldConstruct ( Component )
300300 ? ClassComponentLazy
0 commit comments