From caa60e8fccf4346c64a92fce0e6c171d0ee9764c Mon Sep 17 00:00:00 2001 From: Leo Date: Fri, 8 Apr 2022 23:01:18 +0800 Subject: [PATCH] update types for NonIdleLanes and IdleLane (#24313) --- packages/react-reconciler/src/ReactFiberLane.new.js | 4 ++-- packages/react-reconciler/src/ReactFiberLane.old.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/react-reconciler/src/ReactFiberLane.new.js b/packages/react-reconciler/src/ReactFiberLane.new.js index 4013545caf8d5..45f9eab645e76 100644 --- a/packages/react-reconciler/src/ReactFiberLane.new.js +++ b/packages/react-reconciler/src/ReactFiberLane.new.js @@ -73,10 +73,10 @@ export const SomeRetryLane: Lane = RetryLane1; export const SelectiveHydrationLane: Lane = /* */ 0b0001000000000000000000000000000; -const NonIdleLanes = /* */ 0b0001111111111111111111111111111; +const NonIdleLanes: Lanes = /* */ 0b0001111111111111111111111111111; export const IdleHydrationLane: Lane = /* */ 0b0010000000000000000000000000000; -export const IdleLane: Lanes = /* */ 0b0100000000000000000000000000000; +export const IdleLane: Lane = /* */ 0b0100000000000000000000000000000; export const OffscreenLane: Lane = /* */ 0b1000000000000000000000000000000; diff --git a/packages/react-reconciler/src/ReactFiberLane.old.js b/packages/react-reconciler/src/ReactFiberLane.old.js index 37fb44cc10867..c31ad30144d90 100644 --- a/packages/react-reconciler/src/ReactFiberLane.old.js +++ b/packages/react-reconciler/src/ReactFiberLane.old.js @@ -73,10 +73,10 @@ export const SomeRetryLane: Lane = RetryLane1; export const SelectiveHydrationLane: Lane = /* */ 0b0001000000000000000000000000000; -const NonIdleLanes = /* */ 0b0001111111111111111111111111111; +const NonIdleLanes: Lanes = /* */ 0b0001111111111111111111111111111; export const IdleHydrationLane: Lane = /* */ 0b0010000000000000000000000000000; -export const IdleLane: Lanes = /* */ 0b0100000000000000000000000000000; +export const IdleLane: Lane = /* */ 0b0100000000000000000000000000000; export const OffscreenLane: Lane = /* */ 0b1000000000000000000000000000000;