Variable MatchableUtilsConst
MatchableUtils: {
default: <A, R>(handler: (value: A) => R) => (value: A) => R;
when: <A, R>(
predicate: (value: A) => boolean,
handler: (value: A) => R,
) => (value: A) => undefined | R;
} = ...
Type declaration
default: <A, R>(handler: (value: A) => R) => (value: A) => R
when: <A, R>(
predicate: (value: A) => boolean,
handler: (value: A) => R,
) => (value: A) => undefined | R
Utility functions for working with Matchable data structures