You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that when my library is installed via npm in a project that does not have @types/react-table as a dependency, that project has no access to Column type definition and therefore my custom Columns type definition is incomplete.
How would I go about forwarding the type from external library without adding it as a peerDependency?
I have @types/react-table installed as a devDependency in the TSDX project (although I tried with just a dependency as well).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a
types.ts
file that looks like that:In the dist folder it's converted to
types.d.ts
with following contents:The problem is that when my library is installed via npm in a project that does not have
@types/react-table
as a dependency, that project has no access toColumn
type definition and therefore my customColumns
type definition is incomplete.How would I go about forwarding the type from external library without adding it as a peerDependency?
I have
@types/react-table
installed as adevDependency
in the TSDX project (although I tried with just adependency
as well).Beta Was this translation helpful? Give feedback.
All reactions