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
{{ message }}
Repository navigation
Object result of import all from module has no index signature #16248
Given an actions module where each exported member satisfies the type type MyFn = (...args: any[]) => any, when I collect those exports using import *, the resulting object has no index signature, leading to unwanted type errors.
Type 'typeof "/Users/OliverJAsh/Development/unsplash-web/app/actions/index"' is not assignable to type 'MyMap'.
Index signature is missing in type 'typeof "/Users/OliverJAsh/Development/unsplash-web/app/actions/index"'.
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.
Activity
OliverJAsh commentedon Jun 4, 2017
One workaround is to spread the object:
anticrisis commentedon Jun 6, 2017
Just ran into the same problem. Thanks for the workaround.
mhegazy commentedon Aug 23, 2017
looks like a duplicate of #17622
mhegazy commentedon Sep 7, 2017
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.