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
Item 47 of Effective Typescript says "Export all types that appear in public APIs. The reasoning is solid and goes something like this:
Users will eventually want to reference a type your library uses (e.g., it's part of a function's type signature) only to find out it isn't exported. Since TypeScript has many powerful utility types, they'll find a way to extract and use it anyway (e.g., with ReturnType, Parameters, typeof, etc.).
If a type appears in a public function declaration, it's effectively exported. Therefore, you should do your users a favor and just export them explicitly.
Our SDK doesn't currently do this, so let's make it happen :)
The text was updated successfully, but these errors were encountered:
Item 47 of Effective Typescript says "Export all types that appear in public APIs. The reasoning is solid and goes something like this:
Our SDK doesn't currently do this, so let's make it happen :)
The text was updated successfully, but these errors were encountered: