Skip to content

Commit

Permalink
fix(schematics): make action props plural (#4017)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelxvoelker authored Sep 2, 2023
1 parent f99f1e1 commit 3a56412
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
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

0 comments on commit 3a56412

Please sign in to comment.