Skip to content

Commit 075ecce

Browse files
authored
Add MatchField alias
1 parent 2408ea6 commit 075ecce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/match/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export function MatchTag(props: any): any {
6161
const kind = createMemo(() => props.on?.[props.tag ?? 'type'])
6262
return createMemo(() => props.case[kind()]?.(() => props.on) ?? props.fallback)
6363
}
64+
export {MatchTag as MatchField}
6465

6566
/**
6667
* Control-flow component for matching union literals.

0 commit comments

Comments
 (0)