Skip to content

Commit 3a56412

Browse files
fix(schematics): make action props plural (#4017)
1 parent f99f1e1 commit 3a56412

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

modules/schematics/src/entity/__snapshots__/index.spec.ts.snap

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ export const FooActions = createActionGroup({
1212
'Load Foos': props<{ foos: Foo[] }>(),
1313
'Add Foo': props<{ foo: Foo }>(),
1414
'Upsert Foo': props<{ foo: Foo }>(),
15-
'Add Foos': props<{ foo: Foo[] }>(),
16-
'Upsert Foos': props<{ foo: Foo[] }>(),
15+
'Add Foos': props<{ foos: Foo[] }>(),
16+
'Upsert Foos': props<{ foos: Foo[] }>(),
1717
'Update Foo': props<{ foo: Update<Foo> }>(),
1818
'Update Foos': props<{ foos: Update<Foo>[] }>(),
1919
'Delete Foo': props<{ id: string }>(),
@@ -118,8 +118,8 @@ export const FooActions = createActionGroup({
118118
'Load Foos': props<{ foos: Foo[] }>(),
119119
'Add Foo': props<{ foo: Foo }>(),
120120
'Upsert Foo': props<{ foo: Foo }>(),
121-
'Add Foos': props<{ foo: Foo[] }>(),
122-
'Upsert Foos': props<{ foo: Foo[] }>(),
121+
'Add Foos': props<{ foos: Foo[] }>(),
122+
'Upsert Foos': props<{ foos: Foo[] }>(),
123123
'Update Foo': props<{ foo: Update<Foo> }>(),
124124
'Update Foos': props<{ foos: Update<Foo>[] }>(),
125125
'Delete Foo': props<{ id: string }>(),
@@ -235,8 +235,8 @@ export const FooActions = createActionGroup({
235235
'Load Foos': props<{ foos: Foo[] }>(),
236236
'Add Foo': props<{ foo: Foo }>(),
237237
'Upsert Foo': props<{ foo: Foo }>(),
238-
'Add Foos': props<{ foo: Foo[] }>(),
239-
'Upsert Foos': props<{ foo: Foo[] }>(),
238+
'Add Foos': props<{ foos: Foo[] }>(),
239+
'Upsert Foos': props<{ foos: Foo[] }>(),
240240
'Update Foo': props<{ foo: Update<Foo> }>(),
241241
'Update Foos': props<{ foos: Update<Foo>[] }>(),
242242
'Delete Foo': props<{ id: string }>(),
@@ -375,8 +375,8 @@ export const UserActions = createActionGroup({
375375
'Load Users': props<{ users: User[] }>(),
376376
'Add User': props<{ user: User }>(),
377377
'Upsert User': props<{ user: User }>(),
378-
'Add Users': props<{ user: User[] }>(),
379-
'Upsert Users': props<{ user: User[] }>(),
378+
'Add Users': props<{ users: User[] }>(),
379+
'Upsert Users': props<{ users: User[] }>(),
380380
'Update User': props<{ user: Update<User> }>(),
381381
'Update Users': props<{ users: Update<User>[] }>(),
382382
'Delete User': props<{ id: string }>(),

modules/schematics/src/entity/files/__name@dasherize@if-flat__/__name@dasherize@group-actions__.actions.ts.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ export const <%= classify(name) %>Actions = createActionGroup({
99
'Load <%= classify(name) %>s': props<{ <%= camelize(name) %>s: <%= classify(name) %>[] }>(),
1010
'Add <%= classify(name) %>': props<{ <%= camelize(name) %>: <%= classify(name) %> }>(),
1111
'Upsert <%= classify(name) %>': props<{ <%= camelize(name) %>: <%= classify(name) %> }>(),
12-
'Add <%= classify(name) %>s': props<{ <%= camelize(name) %>: <%= classify(name) %>[] }>(),
13-
'Upsert <%= classify(name) %>s': props<{ <%= camelize(name) %>: <%= classify(name) %>[] }>(),
12+
'Add <%= classify(name) %>s': props<{ <%= camelize(name) %>s: <%= classify(name) %>[] }>(),
13+
'Upsert <%= classify(name) %>s': props<{ <%= camelize(name) %>s: <%= classify(name) %>[] }>(),
1414
'Update <%= classify(name) %>': props<{ <%= camelize(name) %>: Update<<%= classify(name) %>> }>(),
1515
'Update <%= classify(name) %>s': props<{ <%= camelize(name) %>s: Update<<%= classify(name) %>>[] }>(),
1616
'Delete <%= classify(name) %>': props<{ id: string }>(),

modules/schematics/src/feature/__snapshots__/index.spec.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ export const FooActions = createActionGroup({
1212
'Load Foos': props<{ foos: Foo[] }>(),
1313
'Add Foo': props<{ foo: Foo }>(),
1414
'Upsert Foo': props<{ foo: Foo }>(),
15-
'Add Foos': props<{ foo: Foo[] }>(),
16-
'Upsert Foos': props<{ foo: Foo[] }>(),
15+
'Add Foos': props<{ foos: Foo[] }>(),
16+
'Upsert Foos': props<{ foos: Foo[] }>(),
1717
'Update Foo': props<{ foo: Update<Foo> }>(),
1818
'Update Foos': props<{ foos: Update<Foo>[] }>(),
1919
'Delete Foo': props<{ id: string }>(),

0 commit comments

Comments
 (0)