(
snapshot: Value,
getResult: () => Value | undefined,
then: (result: Value) => Result,
isEqual: (a: Value, b: Value) => boolean = Object.is,
)
| 342 | }; |
| 343 | |
| 344 | const ifTransformed = <Value, Result>( |
| 345 | snapshot: Value, |
| 346 | getResult: () => Value | undefined, |
| 347 | then: (result: Value) => Result, |
| 348 | isEqual: (a: Value, b: Value) => boolean = Object.is, |
| 349 | ): Result | undefined => |
| 350 | ifNotUndefined(getResult(), (result) => |
| 351 | snapshot === result || isEqual(snapshot, result) |
| 352 | ? then(result) |
| 353 | : whileMutating(() => then(result)), |
| 354 | ); |
| 355 | |
| 356 | const validateTablesSchema = ( |
| 357 | tableSchema: TablesSchema | undefined, |
no test coverage detected
searching dependent graphs…