title: Object literal may only specify known properties Angular/TypeScript
body: <p>I have an error message:</p>
  <pre><code>Type '{ quantity: number; }' is not assignable to type 
  'Partial&lt;EditOrderConfirmModalComponent&gt;'.
  Object literal may only specify known properties, and 
  'quantity' does not exist in type 'Partial&lt;EditOrderConfirmModalComponent&gt;'.
  </code></pre>
  <p><a href="https://i.stack.imgur.com/BQOt5.jpg" rel="nofollow noreferrer">Error message - VSCode</a></p>
  <p>I don't understand where is the problem?</p>
  <p>The method is like this:</p>
  <pre><code>open(): void {
      const modalRef = this.modalService.show(EditOrderConfirmModalComponent, {
          ...NOT_CLOSABLE_MODAL_OPTIONS,
          initialState: {
              quantity: this.order!.quantity
          }
      });
      modalRef.content!.closeModal.pipe(
          takeUntil(this.unsubscribe$)
      ).subscribe(() =&gt; {
          modalRef?.hide();
      });
  }
  </code></pre>
  <p>In the EditOrderConfirmModalComponent</p>
  <p>I have this:</p>
  <pre><code>export class EditOrderConfirmModalComponent implements OnInit {
  
      modalService: any;
      private unsubscribe$ = new Subject &lt; void &gt; ();
      @Output() closeModal = new EventEmitter &lt; void &gt; ();
      @Input() orderToEdit ? : Order;
  
      constructor(
          public modal: BsModalRef,
          private router: Router,
          private location: Location,
          private service: EditOrderService
      ) {}  
  </code></pre>
  <p>For HTML</p>
  <pre><code>&lt;td style=&quot;min-width: 100%&quot;&gt; {{ orderToEdit.quantity }}&lt;/td&gt;
  </code></pre>
  <p>Thank you for your time.</p>