♻️ Align primitive-union matcher names and drop stale lint disables

Rename `MatcherStrict` / `MatcherWidening` to
`PrimitiveUnionMatcherStrict` / `PrimitiveUnionMatcherWidening`, matching
the exported `getPrimitiveUnionMatcher(W)` names and the
`TaggedUnionMatcher*` pair.

Folds in the working-tree lint cleanups: drop the now-unneeded
`typescript/unified-signatures` disables and turn the tagged-union
factory interfaces into type aliases.
This commit is contained in:
tmu committed 2026-09-22 11:05:16 +00:00
1 parent 09e1c12270
commit 4ebe18adb1
2 files changed
+12 -14

No files matched your search

+8 -6
View File
@@ -102,13 +102,15 @@ interface TaggedUnionMatcherWidening<T extends object, K extends keyof T> {
// The key-taking step of the curried factory. Naming it lets the factory return
// `dispatch` directly, the tacit twin of the primitive-union factory's bare
// `=> dispatch`.
interface TaggedUnionMatcherFactory<T extends object> {
<K extends Discriminated<T>>(k: K): TaggedUnionMatcherStrict<T, K>;
}
type TaggedUnionMatcherFactory<T extends object> = <K extends Discriminated<T>>(
k: K,
) => TaggedUnionMatcherStrict<T, K>;
interface TaggedUnionMatcherWideningFactory<T extends object> {
<K extends Discriminated<T>>(k: K): TaggedUnionMatcherWidening<T, K>;
}
type TaggedUnionMatcherWideningFactory<T extends object> = <
K extends Discriminated<T>,
>(
k: K,
) => TaggedUnionMatcherWidening<T, K>;
const dispatch =
(k: PropertyKey) =>