Skip to content
This repository has been archived by the owner on Jul 24, 2019. It is now read-only.

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 Timer committed Dec 11, 2018
1 parent 09eda5d commit f3bb6fb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions 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 f3bb6fb

Please sign in to comment.