(self: Any, overrides?: Record<string, unknown>)
| 1040 | // user-defined vs. provider-defined vs. dynamic) and its own properties such |
| 1041 | // as `id`. Optional `overrides` replace individual fields on the clone. |
| 1042 | const clone = (self: Any, overrides?: Record<string, unknown>): any => |
| 1043 | Object.assign(Object.create(Object.getPrototypeOf(self)), self, overrides) |
| 1044 | |
| 1045 | const Proto = { |
| 1046 | [TypeId]: { _Requirements: identity }, |
no test coverage detected