From 2f5f2569f57a656891773f9257827eee1e9a2c69 Mon Sep 17 00:00:00 2001 From: Trezy Date: Mon, 26 Aug 2024 15:58:41 +0200 Subject: [PATCH] fix: enforce valid extensions are passed to `extensions` prop --- src/typedefs/ApplicationProps.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/typedefs/ApplicationProps.ts b/src/typedefs/ApplicationProps.ts index f567ac3c..a2f212a6 100644 --- a/src/typedefs/ApplicationProps.ts +++ b/src/typedefs/ApplicationProps.ts @@ -1,6 +1,7 @@ import type { Application, ApplicationOptions, + ExtensionFormatLoose, TextStyle, TextStyleOptions, } from 'pixi.js'; @@ -25,7 +26,7 @@ export interface BaseApplicationProps defaultTextStyle?: TextStyle | TextStyleOptions, /** @description An array of Pixi extensions to be loaded before initialisation. */ - extensions?: any[], + extensions?: ExtensionFormatLoose[], /** @description A unique key which allows React to manage this component across changes in parent state. */ key?: Key,