From d470738f8845995a14195ec1130dba774e023163 Mon Sep 17 00:00:00 2001 From: Justin Walsh Date: Thu, 15 Aug 2024 00:13:52 -0400 Subject: [PATCH 1/2] fix: add missing constructor overrides; remove redundant overrides --- src/typedefs/ConstructorOverrides.ts | 47 ++++++++++++++++------------ 1 file changed, 27 insertions(+), 20 deletions(-) diff --git a/src/typedefs/ConstructorOverrides.ts b/src/typedefs/ConstructorOverrides.ts index 046ec053..c6b05c25 100644 --- a/src/typedefs/ConstructorOverrides.ts +++ b/src/typedefs/ConstructorOverrides.ts @@ -1,25 +1,32 @@ -import type { - AlphaFilter, - AlphaFilterOptions, - BlurFilter, - BlurFilterOptions, - BlurFilterPass, - BlurFilterPassOptions, - DisplacementFilter, - DisplacementFilterOptions, - Filter, - FilterOptions, - NoiseFilter, - NoiseFilterOptions, - Text, - TextOptions, +import { + type BitmapText, + type BlurFilter, + type BlurFilterOptions, + type HTMLText, + type HTMLTextOptions, + type Mesh, + type MeshGeometry, + type MeshGeometryOptions, + type MeshOptions, + type NineSliceSprite, + type NineSliceSpriteOptions, + type PlaneGeometry, + type PlaneGeometryOptions, + type Text, + type TextOptions, + type Texture, + type TilingSprite, + type TilingSpriteOptions, } from 'pixi.js'; export type ConstructorOverrides = - | [typeof AlphaFilter, AlphaFilterOptions] + | [typeof BitmapText, TextOptions] | [typeof BlurFilter, BlurFilterOptions] - | [typeof BlurFilterPass, BlurFilterPassOptions] - | [typeof DisplacementFilter, DisplacementFilterOptions] - | [typeof Filter, FilterOptions] - | [typeof NoiseFilter, NoiseFilterOptions] + | [typeof HTMLText, HTMLTextOptions] + | [typeof Mesh, MeshOptions] + | [typeof MeshGeometry, MeshGeometryOptions] + | [typeof NineSliceSprite, NineSliceSpriteOptions | Texture] + | [typeof PlaneGeometry, PlaneGeometryOptions] + | [typeof TilingSprite, TilingSpriteOptions | Texture] | [typeof Text, TextOptions]; + From 6a5d701bd14d9b80f3ed450173b169772527b68d Mon Sep 17 00:00:00 2001 From: Justin Walsh Date: Thu, 15 Aug 2024 20:26:21 -0400 Subject: [PATCH 2/2] fix: add displacement filter --- src/typedefs/ConstructorOverrides.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/typedefs/ConstructorOverrides.ts b/src/typedefs/ConstructorOverrides.ts index c6b05c25..fcc76137 100644 --- a/src/typedefs/ConstructorOverrides.ts +++ b/src/typedefs/ConstructorOverrides.ts @@ -2,6 +2,8 @@ import { type BitmapText, type BlurFilter, type BlurFilterOptions, + type DisplacementFilter, + type DisplacementFilterOptions, type HTMLText, type HTMLTextOptions, type Mesh, @@ -22,6 +24,7 @@ import { export type ConstructorOverrides = | [typeof BitmapText, TextOptions] | [typeof BlurFilter, BlurFilterOptions] + | [typeof DisplacementFilter, DisplacementFilterOptions] | [typeof HTMLText, HTMLTextOptions] | [typeof Mesh, MeshOptions] | [typeof MeshGeometry, MeshGeometryOptions]