mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-12 16:57:26 +00:00
* Upgrade devDependcies. Replace UglifyJS ⚰ with TerserJS 👶 Fix TypeScript compiler errors
* Remove babel and associated plugins
* Re-enable strictNullChecks and noImplicitAny
* Use surma's better ga type definition.
`ts-ignore` document.activeElement potential null warnings
* Avoiding ignores
42 lines
658 B
TypeScript
42 lines
658 B
TypeScript
interface CanvasRenderingContext2D {
|
|
filter: string;
|
|
}
|
|
|
|
// Handling file-loader imports:
|
|
declare module '*.png' {
|
|
const content: string;
|
|
export default content;
|
|
}
|
|
|
|
declare module '*.jpg' {
|
|
const content: string;
|
|
export default content;
|
|
}
|
|
|
|
declare module '*.gif' {
|
|
const content: string;
|
|
export default content;
|
|
}
|
|
|
|
declare module '*.svg' {
|
|
const content: string;
|
|
export default content;
|
|
}
|
|
|
|
declare module '*.wasm' {
|
|
const content: string;
|
|
export default content;
|
|
}
|
|
|
|
declare module 'url-loader!*' {
|
|
const value: string;
|
|
export default value;
|
|
}
|
|
|
|
declare var VERSION: string;
|
|
|
|
declare var ga: {
|
|
(...args: any[]): void;
|
|
q: any[];
|
|
};
|