(pattern: string)
| 119 | Effect.fail(new ToolkitError({ message })); |
| 120 | |
| 121 | const validatePolicyPattern = (pattern: string): Effect.Effect<void, ToolkitError> => |
| 122 | isValidPattern(pattern) |
| 123 | ? Effect.void |
| 124 | : Effect.fail( |
| 125 | new ToolkitError({ |
| 126 | message: `Invalid toolkit policy pattern: ${pattern}`, |
| 127 | }), |
| 128 | ); |
| 129 | |
| 130 | const comparePositioned = ( |
| 131 | a: Pick<ToolkitPolicyRecord, "id" | "position">, |
no test coverage detected