MCPcopy
hub / github.com/gvergnaud/ts-pattern / exhaustive

Method exhaustive

src/match.ts:115–118  ·  view source on GitHub ↗
(unexpectedValueHandler = defaultCatcher)

Source from the content-addressed store, hash-verified

113 }
114
115 exhaustive(unexpectedValueHandler = defaultCatcher): output {
116 if (this.state.matched) return this.state.value;
117 return unexpectedValueHandler(this.input);
118 }
119
120 run(): output {
121 return this.exhaustive();

Callers 15

runMethod · 0.95
testFnFunction · 0.80
exhaustiveFunction · 0.80
record.test.tsFile · 0.80
getFunction · 0.80
fn1Function · 0.80
fn2Function · 0.80
sets.test.tsFile · 0.80
types.test.tsFile · 0.80

Calls

no outgoing calls

Tested by 15

testFnFunction · 0.64
exhaustiveFunction · 0.64
getFunction · 0.64
fn1Function · 0.64
fn2Function · 0.64
fFunction · 0.64
f2Function · 0.64
throwsFunction · 0.64
fnFunction · 0.64
fFunction · 0.64
f1Function · 0.64
f2Function · 0.64