Skip to content

Commit c473373

Browse files
authored
🤖 Merge PR DefinitelyTyped#72046 [react-reconciler] Add missing NoEventPriority constant by @tschaub
1 parent 515f950 commit c473373

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

‎types/react-reconciler/constants.d.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ export const DefaultEventPriority = 0b0000000000000000000000000010000;
44
export const IdleEventPriority = 0b0100000000000000000000000000000;
55
export const LegacyRoot = 0;
66
export const ConcurrentRoot = 1;
7+
export const NoEventPriority = 0;

‎types/react-reconciler/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "@types/react-reconciler",
4-
"version": "0.28.9999",
4+
"version": "0.31.9999",
55
"projects": [
66
"https://reactjs.org/"
77
],

‎types/react-reconciler/test/ReactReconcilerPriorityConstant.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ export const DEFAULT_EVENT_PRIORITY = 16;
44
export const IDLE_EVENT_PRIORITY = 536870912;
55
export const LEGACY_ROOT = 0;
66
export const CONCURRENT_ROOT = 1;
7+
export const NO_EVENT_PRIORITY = 0;

‎types/react-reconciler/test/react-reconciler-tests.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,6 @@ isEqual(Constants.LEGACY_ROOT, ReactReconcilerConstants.LegacyRoot);
4141

4242
// $ExpectType boolean
4343
isEqual(Constants.CONCURRENT_ROOT, ReactReconcilerConstants.ConcurrentRoot);
44+
45+
// $ExpectType boolean
46+
isEqual(Constants.NO_EVENT_PRIORITY, ReactReconcilerConstants.NoEventPriority);

0 commit comments

Comments
 (0)