Skip to main content

Function: getPatternMatch

▸ Const getPatternMatch<Shape>(value?): Object

Type parameters​

NameType
Shapeextends Object

Parameters​

NameType
value?Shape

Returns​

Object

NameType
ExactComponentType<ExactProps<Shape>>
MatchComponentType<MatchProps<Shape>>
Otherwise(props: OtherwiseProps) => Element
SwitchComponentType<SwitchProps<Shape>>
WhenComponentType<WhenProps<Shape>>
WithComponentType<WithProps<Shape>>

Defined in​

src/utils/pattern-match.ts:17