Skip to content

Commit

Permalink
add webp support for typescript (#5978)
Browse files Browse the repository at this point in the history
* add webp support for typescript

* moved webp declaration below png
  • Loading branch information
dugagjin authored and Timer committed Dec 11, 2018
1 parent 4a6007e commit 3d1c0ea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/react-scripts/lib/react-app.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ declare module '*.png' {
export default src;
}

declare module '*.webp' {
const src: string;
export default src;
}

declare module '*.svg' {
import * as React from 'react';

Expand Down

0 comments on commit 3d1c0ea

Please sign in to comment.