Skip to content

Commit 0e1832d

Browse files
committed
I think this will fix it
1 parent 1ac3d6d commit 0e1832d

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

types/util/reExports.d.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
//
2+
// If typescript `tsc` when building declaration files cannot access deep type reference, you get a opaque error
3+
// This in particular will happen with pnpm if no hoisting is applying to the packages for types utilizing the
4+
// the `ts-toolbelt` types package
5+
// Re-exporting those types here makes those directly accessible to the consumer, fixing the issue
6+
//
7+
8+
export type { Curry } from 'ts-toolbelt/out/Function/Curry';
9+
export type { Take } from 'ts-toolbelt/out/List/Take';
10+
export type { Flatten } from 'ts-toolbelt/out/List/Flatten';
11+
export type { Merge } from 'ts-toolbelt/out/List/Merge';
12+
export type { Assign } from 'ts-toolbelt/out/Object/Assign';
13+
export type { Parameters } from 'ts-toolbelt/out/Function/Parameters';
14+
export type { UnNest } from 'ts-toolbelt/out/List/UnNest';
15+
export type { Narrow } from 'ts-toolbelt/out/Function/Narrow';
16+
export type { ZipObj } from 'ts-toolbelt/out/List/ZipObj';
17+
export type { x } from 'ts-toolbelt/out/Any/x';
18+
export type { Primitive } from 'ts-toolbelt/out/Misc/Primitive';

0 commit comments

Comments
 (0)