Skip to content

Commit

Permalink
add webp support for typescript (facebook#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 hisapy committed Dec 14, 2018
1 parent 6a548e8 commit 894746e
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 894746e

Please sign in to comment.