Skip to content

Commit 3d1c0ea

Browse files
dugagjinTimer
authored andcommitted
add webp support for typescript (#5978)
* add webp support for typescript * moved webp declaration below png
1 parent 4a6007e commit 3d1c0ea

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/react-scripts/lib/react-app.d.ts

+5
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ declare module '*.png' {
3434
export default src;
3535
}
3636

37+
declare module '*.webp' {
38+
const src: string;
39+
export default src;
40+
}
41+
3742
declare module '*.svg' {
3843
import * as React from 'react';
3944

0 commit comments

Comments
 (0)