File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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' ;
You can’t perform that action at this time.
0 commit comments