What is the TypeScript definition of ISourceOptions with emitters? #5342
Unanswered
DigitalNaut
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Which type do I need to use for the options object to work with the emitters plugin in TypeScript?
ISourceOptions
doesn't seem to include anything related to emitters and the@tsparticles/plugin-emitters
package doesn't export an obvious type. Thanks!Edit:
So I've found
IEmitterOptions
somewhere in a package and I'm currently usingISourceOptions & IEmitterOptions
as the type definition. However, it's proving to be quite demanding with the types. Is this correct?Is
ISourceOptions & RecursivePartial<IEmitterOptions>
more appropriate?Beta Was this translation helpful? Give feedback.
All reactions