♻️ Keep the public API to the four factories
The builder types are already the inferred return types and travel into the emitted .d.ts, so exporting them only made them nameable while pinning the internal Strict/Widening split as API. Revert the type exports and the public renames, drop the type-surface test, and document only the factories in README and development/library.md.
This commit is contained in:
1 parent
9c9468fa3c
commit
5ddbbdc183
7 files changed
+37
-145
No files matched your search
+2
-12
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
* The public entry point of `tiny-pattern-ts`.
|
||||
*
|
||||
* Exports the four matcher factories and the builder types they return.
|
||||
* Everything else in `src/` is an implementation detail.
|
||||
* Exports the four matcher factories and nothing else; the builder types they
|
||||
* return and the rest of `src/` are implementation detail.
|
||||
*
|
||||
* @module
|
||||
*/
|
||||
@@ -10,17 +10,7 @@ export {
|
||||
getPrimitiveUnionMatcher,
|
||||
getPrimitiveUnionMatcherW,
|
||||
} from "./primitive-union.ts";
|
||||
export type {
|
||||
PrimitiveUnionMatcher,
|
||||
PrimitiveUnionMatcherW,
|
||||
} from "./primitive-union.ts";
|
||||
export {
|
||||
getTaggedUnionMatcher,
|
||||
getTaggedUnionMatcherW,
|
||||
} from "./tagged-union.ts";
|
||||
export type {
|
||||
TaggedUnionMatcher,
|
||||
TaggedUnionMatcherFactory,
|
||||
TaggedUnionMatcherW,
|
||||
TaggedUnionMatcherWFactory,
|
||||
} from "./tagged-union.ts";
|
||||
Reference in new issue
Block a user