♻️ Name the matcher factories getMatcher / getMatcherW
Drop the strict/widened aliases from src/index.ts so the factories are exported under their own names, and align the type tests, the autocomplete probe (which now imports the public surface from ./index.ts) and library.md with them. Also correct the widened-overload comment: the excess-property check does not apply to a generic P, so MatcherWidening's keyof guard — not the closed constraint — is what rejects keys outside T/_, as library.md already documented.
This commit is contained in:
1 parent
05fad0fcd6
commit
800c11139d
5 files changed
+69
-84
No files matched your search
+1
-1
@@ -1 +1 @@
|
||||
export { strict, widened } from "./primitive.ts";
|
||||
export { getMatcher, getMatcherW } from "./primitive.ts";
|
||||
Reference in new issue
Block a user