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
In order to do a TS migration without constantly introducing new breaking type changes as we move through the codebase, we write the source in TS but do not emit type files from it. Soon we are releasing major versions for all plugins at once so the types work together. In the meantime you have to use outdated types.
Initial checklist
Link to runnable example
No response
Steps to reproduce
According to the BasePlugin Class, I should be able to pass 3 types:
uppy/packages/@uppy/core/src/BasePlugin.ts
Lines 42 to 47 in 57b5909
The type definitions, however, only allow passing in the plugin options as a type:
uppy/packages/@uppy/core/types/index.d.ts
Lines 79 to 83 in 57b5909
Any reason why the type is more restrictive?
Expected behavior
I should be able to create a plugin specifying the meta and body like this:
Actual behavior
The Base plugin only allows plugin options, which means that I'm unable strong type the meta and body inside the plugin.
Only this is allowed:
The text was updated successfully, but these errors were encountered: