angular schematics - Ngrx action group: automatic way to rewrite old Actions - Stack Overflow

admin2025-03-19  0

I have over 800 Actions in my project written in the old form:

export const GetAction = createAction(
  '[BOOK] GET',

  props<{
    filter: BookFilterModel,
  }>(),
);

export const GetFailAction = createAction(
  '[BOOK] GET_FAIL',
);

export const GetSuccessAction = createAction(
  '[BOOK] GET_SUCCESS',

  props<{
    book: BookModel,
  }>(),
);

Is there a way to rewrite them to Action Group automatically?

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1742374485a210360.html

最新回复(0)