# Function produceDraftViewModelWithRequiredFields

- produceDraftViewModelWithRequiredFields<T>(previousModel, newRequiredFields?, conditionalRequiredFieldKeys?): T

- #### Type Parameters

  - T extends ViewModel

  #### Parameters

  - previousModel: T
  - `Optional` newRequiredFields: FieldDescription[]
  - `Optional` conditionalRequiredFieldKeys: (keyof T)[]

  #### Returns T

  #### Deprecated

  Not used anywhere and performs a noop.

  - Defined in src/lib/utils/stepComponentHelpers/stepComponentHelpers.ts:454