( patch: Patch, name: string, argsKey: string, args: unknown, value: unknown )
| 2953 | * of another entry leaves it as it is. |
| 2954 | */ |
| 2955 | const applyPatch = ( |
| 2956 | patch: Patch, |
| 2957 | name: string, |
| 2958 | argsKey: string, |
| 2959 | args: unknown, |
| 2960 | value: unknown |
| 2961 | ): unknown => { |
| 2962 | if (defOf(patch.query).name !== name) return value |
| 2963 | if (patch._tag === "PatchAll") return patch.patch(value, args) |
| 2964 | return argsKeyOf(patch) === argsKey ? patch.patch(value) : value |
| 2965 | } |
| 2966 | |
| 2967 | // ----------------------------------------------------------------------------- |
| 2968 | // Builds: which Layer build owns a fetch |
no test coverage detected