Skip to content

Instantly share code, notes, and snippets.

@xiongemi
Last active May 25, 2020 01:34
Show Gist options
  • Save xiongemi/1f79d7a7751671e925bc35f7bdb07155 to your computer and use it in GitHub Desktop.
Save xiongemi/1f79d7a7751671e925bc35f7bdb07155 to your computer and use it in GitHub Desktop.
import { initFormState } from 'src/app/models/forms-state-init.const';
import { FormsStateModel } from './froms-state-model.interface';
export const initFormsStateModel: FormsStateModel = {
deliveryForm: initFormState,
shippingForm: initFormState,
paymentForm: initFormState
};
import { FormState } from 'src/app/models/forms-state.interface';
import { DeliveryPageFormValue } from './delivery-page-form-value.interface';
import { PaymentPageFormValue } from './payment-page-form-value.interface';
import { ShippingPageFormValue } from './shipping-page-form-value.interface';
export interface FormsStateModel {
deliveryForm: FormState<DeliveryPageFormValue>;
shippingForm: FormState<ShippingPageFormValue>;
paymentForm: FormState<PaymentPageFormValue>;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment