Skip to content

Commit 7a9f1de

Browse files
sirrealgziolo
andauthored
Fix problem with gradient-parser types (#61679)
Fixes an issue where gradient-parser types were used as a "synthetic default import". Co-authored-by: sirreal <[email protected]> Co-authored-by: gziolo <[email protected]>
1 parent eb67023 commit 7a9f1de

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/components/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
### Bug Fix
2020

2121
- `ToolsPanel`: Fix sticking “Reset” option ([#60621](https://github.com/WordPress/gutenberg/pull/60621)).
22+
- Fix an issue where types used a synthetic default import ([#61679](https://github.com/WordPress/gutenberg/pull/61679)).
2223

2324
## 27.5.0 (2024-05-02)
2425

packages/components/src/custom-gradient-picker/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* External dependencies
33
*/
4-
import type gradientParser from 'gradient-parser';
4+
import { type LinearGradientNode } from 'gradient-parser';
55

66
/**
77
* WordPress dependencies
@@ -79,7 +79,7 @@ const GradientTypePicker = ( {
7979
? undefined
8080
: HORIZONTAL_GRADIENT_ORIENTATION,
8181
type: 'linear-gradient',
82-
} as gradientParser.LinearGradientNode )
82+
} satisfies LinearGradientNode )
8383
);
8484
};
8585

0 commit comments

Comments
 (0)