Skip to content

Commit

Permalink
Update type in png-reader.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
dumganhar committed Jan 22, 2025
1 parent 4d3329f commit f4b576b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cocos/particle-2d/png-reader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ interface PNGAnimationFrame {

interface PNGTransparency {
indexed?: number[];
rgb?: number[] | number;
rgb?: number[];
grayscale?: number;
}

Expand All @@ -58,7 +58,7 @@ export class PNGReader {
private imgData: Uint8Array | number[] = [];
private transparency: PNGTransparency = {
indexed: [],
rgb: 0,
rgb: [],
grayscale: 0,
};
private declare animation: {
Expand Down

0 comments on commit f4b576b

Please sign in to comment.