Skip to content

Commit

Permalink
Core Data: Rename types directory to entity-types (#39225)
Browse files Browse the repository at this point in the history
When we introduced the types for the core entities in #38666 we used a
directory named `types`. Unfortunately this meant that we can't create the
customary file `src/types.ts` because of the name clash in module resolution.

In this patch we're renaming the directory so that we can separately
import `entity-types(/index.ts)` and also `types(.ts)` without the
naming conflict.
  • Loading branch information
dmsnell authored Mar 7, 2022
1 parent 555fa88 commit 04df7e2
Show file tree
Hide file tree
Showing 24 changed files with 1 addition and 1 deletion.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/core-data/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@ export { default as __experimentalUseEntityRecord } from './hooks/use-entity-rec
export { default as __experimentalUseEntityRecords } from './hooks/use-entity-records';
export * from './entity-provider';
export * from './fetch';
export * from './types';
export * from './entity-types';

0 comments on commit 04df7e2

Please sign in to comment.