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

fix(schematics): make action props plural #4017

Merged
merged 4 commits into from
Sep 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
16 changes: 8 additions & 8 deletions modules/schematics/src/entity/__snapshots__/index.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export const FooActions = createActionGroup({
'Load Foos': props<{ foos: Foo[] }>(),
'Add Foo': props<{ foo: Foo }>(),
'Upsert Foo': props<{ foo: Foo }>(),
'Add Foos': props<{ foo: Foo[] }>(),
'Upsert Foos': props<{ foo: Foo[] }>(),
'Add Foos': props<{ foos: Foo[] }>(),
'Upsert Foos': props<{ foos: Foo[] }>(),
'Update Foo': props<{ foo: Update<Foo> }>(),
'Update Foos': props<{ foos: Update<Foo>[] }>(),
'Delete Foo': props<{ id: string }>(),
Expand Down Expand Up @@ -118,8 +118,8 @@ export const FooActions = createActionGroup({
'Load Foos': props<{ foos: Foo[] }>(),
'Add Foo': props<{ foo: Foo }>(),
'Upsert Foo': props<{ foo: Foo }>(),
'Add Foos': props<{ foo: Foo[] }>(),
'Upsert Foos': props<{ foo: Foo[] }>(),
'Add Foos': props<{ foos: Foo[] }>(),
'Upsert Foos': props<{ foos: Foo[] }>(),
'Update Foo': props<{ foo: Update<Foo> }>(),
'Update Foos': props<{ foos: Update<Foo>[] }>(),
'Delete Foo': props<{ id: string }>(),
Expand Down Expand Up @@ -235,8 +235,8 @@ export const FooActions = createActionGroup({
'Load Foos': props<{ foos: Foo[] }>(),
'Add Foo': props<{ foo: Foo }>(),
'Upsert Foo': props<{ foo: Foo }>(),
'Add Foos': props<{ foo: Foo[] }>(),
'Upsert Foos': props<{ foo: Foo[] }>(),
'Add Foos': props<{ foos: Foo[] }>(),
'Upsert Foos': props<{ foos: Foo[] }>(),
'Update Foo': props<{ foo: Update<Foo> }>(),
'Update Foos': props<{ foos: Update<Foo>[] }>(),
'Delete Foo': props<{ id: string }>(),
Expand Down Expand Up @@ -375,8 +375,8 @@ export const UserActions = createActionGroup({
'Load Users': props<{ users: User[] }>(),
'Add User': props<{ user: User }>(),
'Upsert User': props<{ user: User }>(),
'Add Users': props<{ user: User[] }>(),
'Upsert Users': props<{ user: User[] }>(),
'Add Users': props<{ users: User[] }>(),
'Upsert Users': props<{ users: User[] }>(),
'Update User': props<{ user: Update<User> }>(),
'Update Users': props<{ users: Update<User>[] }>(),
'Delete User': props<{ id: string }>(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export const <%= classify(name) %>Actions = createActionGroup({
'Load <%= classify(name) %>s': props<{ <%= camelize(name) %>s: <%= classify(name) %>[] }>(),
'Add <%= classify(name) %>': props<{ <%= camelize(name) %>: <%= classify(name) %> }>(),
'Upsert <%= classify(name) %>': props<{ <%= camelize(name) %>: <%= classify(name) %> }>(),
'Add <%= classify(name) %>s': props<{ <%= camelize(name) %>: <%= classify(name) %>[] }>(),
'Upsert <%= classify(name) %>s': props<{ <%= camelize(name) %>: <%= classify(name) %>[] }>(),
'Add <%= classify(name) %>s': props<{ <%= camelize(name) %>s: <%= classify(name) %>[] }>(),
'Upsert <%= classify(name) %>s': props<{ <%= camelize(name) %>s: <%= classify(name) %>[] }>(),
'Update <%= classify(name) %>': props<{ <%= camelize(name) %>: Update<<%= classify(name) %>> }>(),
'Update <%= classify(name) %>s': props<{ <%= camelize(name) %>s: Update<<%= classify(name) %>>[] }>(),
'Delete <%= classify(name) %>': props<{ id: string }>(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export const FooActions = createActionGroup({
'Load Foos': props<{ foos: Foo[] }>(),
'Add Foo': props<{ foo: Foo }>(),
'Upsert Foo': props<{ foo: Foo }>(),
'Add Foos': props<{ foo: Foo[] }>(),
'Upsert Foos': props<{ foo: Foo[] }>(),
'Add Foos': props<{ foos: Foo[] }>(),
'Upsert Foos': props<{ foos: Foo[] }>(),
'Update Foo': props<{ foo: Update<Foo> }>(),
'Update Foos': props<{ foos: Update<Foo>[] }>(),
'Delete Foo': props<{ id: string }>(),
Expand Down