LogGuard: (<Guard>(guard: Guard, before?: (({
value,
guard
}: {
guard: Guard;
value: unknown;
}) => void), after?: (({
result,
value,
guard
}: {
guard: Guard;
result: boolean;
value: unknown;
}) => void)) => Guard)
Type declaration
-
- <Guard>(guard: Guard, before?: (({
value,
guard
}: {
guard: Guard;
value: unknown;
}) => void), after?: (({
result,
value,
guard
}: {
guard: Guard;
result: boolean;
value: unknown;
}) => void)): Guard
-
Parameters
-
guard: Guard
-
Optional
before: (({
value,
guard
}: {
guard: Guard;
value: unknown;
}) => void)
-
- ({
value,
guard
}: {
guard: Guard;
value: unknown;
}): void
-
Parameters
-
{
value,
guard
}: {
guard: Guard;
value: unknown;
}
-
Readonly
guard: Guard
-
Readonly
value: unknown
Returns void
-
Optional
after: (({
result,
value,
guard
}: {
guard: Guard;
result: boolean;
value: unknown;
}) => void)
-
- ({
result,
value,
guard
}: {
guard: Guard;
result: boolean;
value: unknown;
}): void
-
Parameters
-
{
result,
value,
guard
}: {
guard: Guard;
result: boolean;
value: unknown;
}
-
Readonly
guard: Guard
-
Readonly
result: boolean
-
Readonly
value: unknown
Returns void
Returns Guard