Make Particles component typed generically to fix doc generation
This commit is contained in:
parent
2763749904
commit
1f4676d997
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
import type { EmitterConfigV3 } from "@pixi/particle-emitter";
|
||||
import { Emitter, upgradeConfig } from "@pixi/particle-emitter";
|
||||
import type { OptionsFunc, Replace, StyleValue } from "features/feature";
|
||||
import type { GenericComponent, OptionsFunc, Replace, StyleValue } from "features/feature";
|
||||
import { Component, GatherProps, getUniqueID } from "features/feature";
|
||||
import ParticlesComponent from "features/particles/Particles.vue";
|
||||
import { Application } from "@pixi/app";
|
||||
|
@ -22,7 +22,7 @@ export interface BaseParticles {
|
|||
app: Ref<null | Application>;
|
||||
addEmitter: (config: EmitterConfigV3) => Promise<Emitter>;
|
||||
type: typeof ParticlesType;
|
||||
[Component]: typeof ParticlesComponent;
|
||||
[Component]: GenericComponent;
|
||||
[GatherProps]: () => Record<string, unknown>;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue