Skip to content

Commit

Permalink
Merge pull request #524 from thejustinwalsh/beta-constructor-overrides
Browse files Browse the repository at this point in the history
fix: add missing constructor overrides; remove redundant overrides
  • Loading branch information
trezy authored Aug 16, 2024
2 parents 9ddbcb3 + 6a5d701 commit 1c4e6c3
Showing 1 changed file with 29 additions and 19 deletions.
48 changes: 29 additions & 19 deletions src/typedefs/ConstructorOverrides.ts
Original file line number Diff line number Diff line change
@@ -1,25 +1,35 @@
import type {
AlphaFilter,
AlphaFilterOptions,
BlurFilter,
BlurFilterOptions,
BlurFilterPass,
BlurFilterPassOptions,
DisplacementFilter,
DisplacementFilterOptions,
Filter,
FilterOptions,
NoiseFilter,
NoiseFilterOptions,
Text,
TextOptions,
import {
type BitmapText,
type BlurFilter,
type BlurFilterOptions,
type DisplacementFilter,
type DisplacementFilterOptions,
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];

0 comments on commit 1c4e6c3

Please sign in to comment.