Skip to content

Commit

Permalink
Disable plural for global styles
Browse files Browse the repository at this point in the history
  • Loading branch information
manzoorwanijk committed Jan 3, 2025
1 parent ca6550a commit 7b23643
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/core-data/src/dynamic-entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export type WPEntityTypes< C extends ET.Context = 'edit' > = {
* - "status" to "statuses"
*/
type PluralizeEntity< T extends string > = T extends 'GlobalStyles'
? 'GlobalStylesVariations'
? never
: T extends 'Media'
? 'MediaItems'
: T extends 'Status'
Expand All @@ -52,9 +52,7 @@ type PluralizeEntity< T extends string > = T extends 'GlobalStyles'
* - "mediaItems" to "media"
* - "statuses" to "status"
*/
type SingularizeEntity< T extends string > = T extends 'GlobalStylesVariations'
? 'GlobalStyles'
: T extends 'MediaItems'
type SingularizeEntity< T extends string > = T extends 'MediaItems'
? 'Media'
: T extends 'Statuses'
? 'Status'
Expand Down

0 comments on commit 7b23643

Please sign in to comment.