From 9420084c21eac98acaf41261833cad4745faa566 Mon Sep 17 00:00:00 2001 From: harris-miller Date: Sun, 21 Sep 2025 23:50:49 -0600 Subject: [PATCH] I think this will fix it --- types/util/reExports.d.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 types/util/reExports.d.ts diff --git a/types/util/reExports.d.ts b/types/util/reExports.d.ts new file mode 100644 index 0000000..08bd4ce --- /dev/null +++ b/types/util/reExports.d.ts @@ -0,0 +1,18 @@ +// +// If typescript `tsc` when building declaration files cannot access deep type reference, you get a opaque error +// This in particular will happen with pnpm if no hoisting is applying to the packages for types utilizing the +// the `ts-toolbelt` types package +// Re-exporting those types here makes those directly accessible to the consumer, fixing the issue +// + +export type { Curry } from 'ts-toolbelt/out/Function/Curry'; +export type { Take } from 'ts-toolbelt/out/List/Take'; +export type { Flatten } from 'ts-toolbelt/out/List/Flatten'; +export type { Merge } from 'ts-toolbelt/out/List/Merge'; +export type { Assign } from 'ts-toolbelt/out/Object/Assign'; +export type { Parameters } from 'ts-toolbelt/out/Function/Parameters'; +export type { UnNest } from 'ts-toolbelt/out/List/UnNest'; +export type { Narrow } from 'ts-toolbelt/out/Function/Narrow'; +export type { ZipObj } from 'ts-toolbelt/out/List/ZipObj'; +export type { x } from 'ts-toolbelt/out/Any/x'; +export type { Primitive } from 'ts-toolbelt/out/Misc/Primitive';