Add typing to all the filter types.

This commit is contained in:
Emlyn Bolton
2019-03-28 11:36:20 -07:00
parent e32052ca81
commit 32ab9ac3df

38
src/index-types.d.ts vendored
View File

@@ -134,25 +134,25 @@ declare namespace Konva {
export type KonvaEventObject<E> = import('./types').KonvaEventObject<E>; export type KonvaEventObject<E> = import('./types').KonvaEventObject<E>;
export const Filters: { export const Filters: {
Blur; Blur: typeof Blur;
Brighten; Brighten: typeof Brighten;
Contrast; Contrast: typeof Contrast;
Emboss; Emboss: typeof Emboss;
Enhance; Enhance: typeof Enhance;
Grayscale; Grayscale: typeof Grayscale;
HSL; HSL: typeof HSL;
HSV; HSV: typeof HSV;
Invert; Invert: typeof Invert;
Kaleidoscope; Kaleidoscope: typeof Kaleidoscope;
Mask; Mask: typeof Mask;
Noise; Noise: typeof Noise;
Pixelate; Pixelate: typeof Pixelate;
Posterize; Posterize: typeof Posterize;
RGB; RGB: typeof RGB;
RGBA; RGBA: typeof RGBA;
Sepia; Sepia: typeof Sepia;
Solarize; Solarize: typeof Solarize;
Threshold; Threshold: typeof Threshold;
}; };
} }