delete-asserted-view-copy.ts:17:3 - error SC1090: 'delete' of 'model': the operand's type '{ model: string }' declares 'model' required, so it cannot be absent (only an optional field, 'f?: T', has an absent state that Object.keys, 'in' and JSON.stringify follow; make 'model' optional if the program must remove it) is not supported yet

  16 | function dropRequiredAsOptional(params: Params): void {
  17 |   delete (params as { model?: string }).model;
     |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  18 | }

delete-asserted-view-copy.ts:21:10 - error SC1090: 'delete' of 'model': the operand's type '{ model: string }' declares 'model' required, so it cannot be absent (only an optional field, 'f?: T', has an absent state that Object.keys, 'in' and JSON.stringify follow; make 'model' optional if the program must remove it) is not supported yet

  20 | function dropRequiredAsOptionalValue(params: Params): boolean {
  21 |   return delete (params as { model?: string }).model;
     |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  22 | }