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.
17 lines
405 B
TypeScript
17 lines
405 B
TypeScript
/**
|
|
* The public entry point of `tiny-pattern-ts`.
|
|
*
|
|
* Exports the four matcher factories and nothing else; the builder types they
|
|
* return and the rest of `src/` are implementation detail.
|
|
*
|
|
* @module
|
|
*/
|
|
export {
|
|
getPrimitiveUnionMatcher,
|
|
getPrimitiveUnionMatcherW,
|
|
} from "./primitive-union.ts";
|
|
export {
|
|
getTaggedUnionMatcher,
|
|
getTaggedUnionMatcherW,
|
|
} from "./tagged-union.ts";
|