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
It doesn't work using rollup-plugin-dts because this plugin requires the explicit export of all types in a cascade of index.ts files. Requires the use of:
export{defaultas____}from'./____';
It doesn't work using rollup-plugin-api-extractor because api-extractor doesn't support
export*as____from"./____"`
It needs to be split into two lines:
import*as____from"./____";export{____};
TypeChain uses the two-line pattern for export type but not for export. I submitted #743 to fix this last issue but I have no idea if it will be included in an official release any time soon.
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
-
Has anyone successfully created a library out of the TypeChain-generated types? What did you use?
I've been trying to use rollup with either the rollup-plugin-dts or the rollup-plugin-api-extractor.
It doesn't work using
rollup-plugin-dts
because this plugin requires the explicit export of all types in a cascade ofindex.ts
files. Requires the use of:It doesn't work using
rollup-plugin-api-extractor
because api-extractor doesn't supportIt needs to be split into two lines:
TypeChain uses the two-line pattern for
export type
but not forexport
. I submitted #743 to fix this last issue but I have no idea if it will be included in an official release any time soon.Beta Was this translation helpful? Give feedback.
All reactions