Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Consistency] Use the word "record" for the entity record TypeScript types #39251

Merged
merged 4 commits into from
Mar 14, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Replace imports from ../helpers with ./helpers
  • Loading branch information
adamziel committed Mar 11, 2022
commit b7241bc6a59c0d5d7f7635e26549e9b175886004
1 change: 1 addition & 0 deletions docs/reference-guides/data/data-core.md
Original file line number Diff line number Diff line change
Expand Up @@ -709,4 +709,5 @@ _Parameters_
Action triggered to undo the last edit to
an entity record, if any.


<!-- END TOKEN(Autogenerated actions|../../../packages/core-data/src/actions.js) -->
1 change: 1 addition & 0 deletions packages/core-data/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,7 @@ _Returns_

- `boolean`: Whether the entity record is saving or not.


<!-- END TOKEN(Autogenerated selectors|src/selectors.js) -->

## Contributing to this package
Expand Down
2 changes: 1 addition & 1 deletion packages/core-data/src/entity-types/attachment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type {
OmitNevers,
CommentingStatus,
PingStatus,
} from '../helpers';
} from './helpers';

import type { BaseEntityRecords as _BaseEntityRecords } from './base-entity-records';

Expand Down
2 changes: 1 addition & 1 deletion packages/core-data/src/entity-types/comment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type {
ContextualField,
OmitNevers,
RenderedText,
} from '../helpers';
} from './helpers';
import type { BaseEntityRecords as _BaseEntityRecords } from './base-entity-records';

export type CommentStatus = 'hold' | 'approve' | 'spam' | 'trash' | '1' | '0';
Expand Down
2 changes: 1 addition & 1 deletion packages/core-data/src/entity-types/menu-location.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Internal dependencies
*/
import type { Context, OmitNevers } from '../helpers';
import type { Context, OmitNevers } from './helpers';

import type { BaseEntityRecords as _BaseEntityRecords } from './base-entity-records';

Expand Down
2 changes: 1 addition & 1 deletion packages/core-data/src/entity-types/nav-menu-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type {
Context,
ContextualField,
OmitNevers,
} from '../helpers';
} from './helpers';

import type { BaseEntityRecords as _BaseEntityRecords } from './base-entity-records';

Expand Down
2 changes: 1 addition & 1 deletion packages/core-data/src/entity-types/nav-menu.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Internal dependencies
*/
import type { Context, ContextualField, OmitNevers } from '../helpers';
import type { Context, ContextualField, OmitNevers } from './helpers';

import type { BaseEntityRecords as _BaseEntityRecords } from './base-entity-records';

Expand Down
2 changes: 1 addition & 1 deletion packages/core-data/src/entity-types/navigation-area.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Internal dependencies
*/
import type { Context, OmitNevers } from '../helpers';
import type { Context, OmitNevers } from './helpers';

import type { BaseEntityRecords as _BaseEntityRecords } from './base-entity-records';

Expand Down
2 changes: 1 addition & 1 deletion packages/core-data/src/entity-types/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type {
PostStatus,
RenderedText,
OmitNevers,
} from '../helpers';
} from './helpers';

import type { BaseEntityRecords as _BaseEntityRecords } from './base-entity-records';

Expand Down
2 changes: 1 addition & 1 deletion packages/core-data/src/entity-types/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type {
ContextualField,
RenderedText,
OmitNevers,
} from '../helpers';
} from './helpers';

import type { BaseEntityRecords as _BaseEntityRecords } from './base-entity-records';

Expand Down
2 changes: 1 addition & 1 deletion packages/core-data/src/entity-types/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type {
PostStatus,
RenderedText,
OmitNevers,
} from '../helpers';
} from './helpers';

import type { BaseEntityRecords as _BaseEntityRecords } from './base-entity-records';

Expand Down
2 changes: 1 addition & 1 deletion packages/core-data/src/entity-types/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type {
Context,
OmitNevers,
PingStatus,
} from '../helpers';
} from './helpers';

import type { BaseEntityRecords as _BaseEntityRecords } from './base-entity-records';

Expand Down
2 changes: 1 addition & 1 deletion packages/core-data/src/entity-types/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Internal dependencies
*/
import type { Widget } from './widget';
import type { Context, OmitNevers } from '../helpers';
import type { Context, OmitNevers } from './helpers';

import type { BaseEntityRecords as _BaseEntityRecords } from './base-entity-records';

Expand Down
2 changes: 1 addition & 1 deletion packages/core-data/src/entity-types/taxonomy.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Internal dependencies
*/
import type { Context, ContextualField, OmitNevers } from '../helpers';
import type { Context, ContextualField, OmitNevers } from './helpers';

import type { BaseEntityRecords as _BaseEntityRecords } from './base-entity-records';

Expand Down
2 changes: 1 addition & 1 deletion packages/core-data/src/entity-types/theme.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Internal dependencies
*/
import type { Context, PostFormat, RenderedText, OmitNevers } from '../helpers';
import type { Context, PostFormat, RenderedText, OmitNevers } from './helpers';

import type { BaseEntityRecords as _BaseEntityRecords } from './base-entity-records';

Expand Down
2 changes: 1 addition & 1 deletion packages/core-data/src/entity-types/type.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Internal dependencies
*/
import type { Context, ContextualField, OmitNevers } from '../helpers';
import type { Context, ContextualField, OmitNevers } from './helpers';

import type { BaseEntityRecords as _BaseEntityRecords } from './base-entity-records';

Expand Down
2 changes: 1 addition & 1 deletion packages/core-data/src/entity-types/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type {
Context,
ContextualField,
OmitNevers,
} from '../helpers';
} from './helpers';

import type { BaseEntityRecords as _BaseEntityRecords } from './base-entity-records';

Expand Down
2 changes: 1 addition & 1 deletion packages/core-data/src/entity-types/widget-type.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Internal dependencies
*/
import type { Context, OmitNevers } from '../helpers';
import type { Context, OmitNevers } from './helpers';

import type { BaseEntityRecords as _BaseEntityRecords } from './base-entity-records';

Expand Down
2 changes: 1 addition & 1 deletion packages/core-data/src/entity-types/widget.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Internal dependencies
*/
import type { Context, ContextualField, OmitNevers } from '../helpers';
import type { Context, ContextualField, OmitNevers } from './helpers';

import type { BaseEntityRecords as _BaseEntityRecords } from './base-entity-records';

Expand Down
2 changes: 1 addition & 1 deletion packages/core-data/src/entity-types/wp-template-part.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type {
RenderedText,
OmitNevers,
ContextualField,
} from '../helpers';
} from './helpers';

import type { BaseEntityRecords as _BaseEntityRecords } from './base-entity-records';

Expand Down
2 changes: 1 addition & 1 deletion packages/core-data/src/entity-types/wp-template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type {
RenderedText,
OmitNevers,
ContextualField,
} from '../helpers';
} from './helpers';

import type { BaseEntityRecords as _BaseEntityRecords } from './base-entity-records';

Expand Down