From bb95d5aaecd06a1c80e3d09a096329feb00f185a Mon Sep 17 00:00:00 2001 From: Andrew Jarrett Date: Sun, 28 Apr 2024 17:20:03 -0500 Subject: [PATCH 1/2] chore: exports internal `Fn*` modules --- src/kind/exports.ts | 22 ++++++++++++++++++++++ src/kind/kind.ts | 22 +++++++++++----------- 2 files changed, 33 insertions(+), 11 deletions(-) diff --git a/src/kind/exports.ts b/src/kind/exports.ts index 103395c..a5cced7 100644 --- a/src/kind/exports.ts +++ b/src/kind/exports.ts @@ -13,6 +13,28 @@ export type { Scope, /** @internal */ $$, + /** @internal */ + Fn1, + /** @internal */ + Fn10, + /** @internal */ + Fn2, + /** @internal */ + Fn3, + /** @internal */ + Fn4, + /** @internal */ + Fn5, + /** @internal */ + Fn6, + /** @internal */ + Fn7, + /** @internal */ + Fn8, + /** @internal */ + Fn9, + /** @internal */ + cached, } from "./kind" export type { diff --git a/src/kind/kind.ts b/src/kind/kind.ts index a2953e5..8d5b92d 100644 --- a/src/kind/kind.ts +++ b/src/kind/kind.ts @@ -36,19 +36,19 @@ declare namespace kind { } } -interface Fn1 { [0]: _ } -interface Fn2 { [0]: _, [1]: _ } -interface Fn3 { [0]: _, [1]: _, [2]: _ } -interface Fn4 { [0]: _, [1]: _, [2]: _, [3]: _ } -interface Fn5 { [0]: _, [1]: _, [2]: _, [3]: _, [4]: _ } -interface Fn6 { [0]: _, [1]: _, [2]: _, [3]: _, [4]: _, [5]: _ } -interface Fn7 { [0]: _, [1]: _, [2]: _, [3]: _, [4]: _, [5]: _, [6]: _ } -interface Fn8 { [0]: _, [1]: _, [2]: _, [3]: _, [4]: _, [5]: _, [6]: _, [7]: _ } -interface Fn9 { [0]: _, [1]: _, [2]: _, [3]: _, [4]: _, [5]: _, [6]: _, [7]: _, [8]: _ } -interface Fn10 { [0]: _, [1]: _, [2]: _, [3]: _, [4]: _, [5]: _, [6]: _, [7]: _, [8]: _, [9]: _ } +export interface Fn1 { [0]: _ } +export interface Fn2 { [0]: _, [1]: _ } +export interface Fn3 { [0]: _, [1]: _, [2]: _ } +export interface Fn4 { [0]: _, [1]: _, [2]: _, [3]: _ } +export interface Fn5 { [0]: _, [1]: _, [2]: _, [3]: _, [4]: _ } +export interface Fn6 { [0]: _, [1]: _, [2]: _, [3]: _, [4]: _, [5]: _ } +export interface Fn7 { [0]: _, [1]: _, [2]: _, [3]: _, [4]: _, [5]: _, [6]: _ } +export interface Fn8 { [0]: _, [1]: _, [2]: _, [3]: _, [4]: _, [5]: _, [6]: _, [7]: _ } +export interface Fn9 { [0]: _, [1]: _, [2]: _, [3]: _, [4]: _, [5]: _, [6]: _, [7]: _, [8]: _ } +export interface Fn10 { [0]: _, [1]: _, [2]: _, [3]: _, [4]: _, [5]: _, [6]: _, [7]: _, [8]: _, [9]: _ } /** @internal */ -declare namespace cached { +export declare namespace cached { interface A00 { [0]: [] } interface A01 { [1]: [_] } interface A02 { [2]: [_, _] } From bbbb0b755620af6b2613ed358783ea206e2d6d30 Mon Sep 17 00:00:00 2001 From: Andrew Jarrett Date: Sun, 28 Apr 2024 17:21:22 -0500 Subject: [PATCH 2/2] chore: commits changeset --- .changeset/nervous-planes-unite.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/nervous-planes-unite.md diff --git a/.changeset/nervous-planes-unite.md b/.changeset/nervous-planes-unite.md new file mode 100644 index 0000000..f8661b5 --- /dev/null +++ b/.changeset/nervous-planes-unite.md @@ -0,0 +1,5 @@ +--- +"any-ts": patch +--- + +chore: exports internal `Fn*` type constructors