-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor!: use camelcase for acronyms
close #17
- Loading branch information
Showing
5 changed files
with
62 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
import PNGDecoder from './PNGDecoder'; | ||
import PNGEncoder from './PNGEncoder'; | ||
import PngDecoder from './PngDecoder'; | ||
import PngEncoder from './PngEncoder'; | ||
import { | ||
DecoderInputType, | ||
IPNGDecoderOptions, | ||
IDecodedPNG, | ||
IImageData, | ||
IPNGEncoderOptions, | ||
PngDecoderOptions, | ||
DecodedPng, | ||
ImageData, | ||
PngEncoderOptions, | ||
} from './types'; | ||
|
||
export * from './types'; | ||
|
||
function decodePNG( | ||
function decodePng( | ||
data: DecoderInputType, | ||
options?: IPNGDecoderOptions, | ||
): IDecodedPNG { | ||
const decoder = new PNGDecoder(data, options); | ||
options?: PngDecoderOptions, | ||
): DecodedPng { | ||
const decoder = new PngDecoder(data, options); | ||
return decoder.decode(); | ||
} | ||
|
||
function encodePNG(png: IImageData, options?: IPNGEncoderOptions): Uint8Array { | ||
const encoder = new PNGEncoder(png, options); | ||
function encodePng(png: ImageData, options?: PngEncoderOptions): Uint8Array { | ||
const encoder = new PngEncoder(png, options); | ||
return encoder.encode(); | ||
} | ||
|
||
export { decodePNG as decode, encodePNG as encode }; | ||
export { decodePng as decode, encodePng as encode }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters