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
As done in manager.ts, the ambient module declaration can be used be extend Storybook's Parameters type to include apolloClient and its type. But the declaration doesn't appear in the compiled code.
As done in manager.ts, the ambient module declaration can be used be extend Storybook's Parameters type to include
apolloClient
and its type. But the declaration doesn't appear in the compiled code.storybook-addon-apollo-client/src/manager.ts
Lines 7 to 9 in 029aea6
It would be nice if it works type-safe out of the box, but TypeScript only loads types if it imported or the package is
@types/*
AFAIK.So I'm thinking about add a new entry point like
storybook-types
providing the declarations, and letting the user import it to get full type-safety.Another option: Tell users to add the following code to something.d.ts in README
The text was updated successfully, but these errors were encountered: