From 1f4676d997ce7353a665988db92a32fe803f07f8 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Thu, 14 Jul 2022 08:20:28 -0500 Subject: [PATCH] Make Particles component typed generically to fix doc generation --- src/features/particles/particles.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/features/particles/particles.tsx b/src/features/particles/particles.tsx index fd9734e..1e2208a 100644 --- a/src/features/particles/particles.tsx +++ b/src/features/particles/particles.tsx @@ -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; addEmitter: (config: EmitterConfigV3) => Promise; type: typeof ParticlesType; - [Component]: typeof ParticlesComponent; + [Component]: GenericComponent; [GatherProps]: () => Record; }