Make Particles component typed generically to fix doc generation

This commit is contained in:
thepaperpilot 2022-07-14 08:20:28 -05:00
parent 2763749904
commit 1f4676d997

View file

@ -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>;
}