Creates an AsyncGuardOperator — an async validation operator.
— data type
— async validation function
const op = createAsyncGuardOperator<number>(async (n) => (await check(n)).valid);const result = await op.apply(42); // 42 or undefined Copy
const op = createAsyncGuardOperator<number>(async (n) => (await check(n)).valid);const result = await op.apply(42); // 42 or undefined
Creates an AsyncGuardOperator — an async validation operator.