Is there a way to partially declare a module in a definition file?

209 Views Asked by At

I'm progressively building a definition file for a library with many exports. I'd like any exports in which I don't provide any definitions for to be typed as any.

I know the TypeScript docs recommend adding this line to type ALL exports as any:

declare module 'some-module';

However, I'm not sure how to type some of the exports from the library while anything else is just a big set of anys.

Is there a way to do this?

0

There are 0 best solutions below