What is the TypeScript definition of ISourceOptions with emitters? #5342
Unanswered
DigitalNaut
asked this question in
Q&A
Replies: 1 comment
-
First of all thanks for the hint where the type is. ❤️ I was going crazy and the documentation is so horrible to find something. (migrating atm my angular project from tsparticles v2 (old namespace) to v3) and used this all the time. So to answer your questions: probably more appropriate :) |
Beta Was this translation helpful? Give feedback.
0 replies
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