react-pixi-fiber 2.0.0-rc.3 → 2.0.0-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +4 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -209,7 +209,10 @@ declare module "react-pixi-fiber" {
|
|
|
209
209
|
|
|
210
210
|
// A component wrapper for `PIXI.Text`.
|
|
211
211
|
// see: http://pixijs.download/dev/docs/PIXI.Text.html
|
|
212
|
-
export type Text = DisplayObjectProps<PIXI.Text
|
|
212
|
+
export type Text = Omit<DisplayObjectProps<PIXI.Text>, "style"> & {
|
|
213
|
+
// `PIXI.Text` reads `style` as `TextStyle` but its setter also accepts a partial style.
|
|
214
|
+
style?: PIXI.TextStyle | Partial<PIXI.ITextStyle>;
|
|
215
|
+
};
|
|
213
216
|
export const Text: PixiComponent<Text, PIXI.Text>;
|
|
214
217
|
|
|
215
218
|
// A component wrapper for `PIXI.TilingSprite` (or `PIXI.extras.TilingSprite` in PixiJS v4).
|