Skip to content

Commit 39b1c6e

Browse files
janKirfreiksenet
authored andcommitted
feat(gatsby-image): add types for gatsby-image/withIEPolyfill to fix #14592 (#14641)
* add types for gatsby-image/withIEPolyfill * remove state generic
1 parent 684fd12 commit 39b1c6e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import * as React from "react"
2+
3+
import GatsbyImage, { GatsbyImageProps } from "../index"
4+
5+
interface GatsbyImageWithIEPolyfillProps extends GatsbyImageProps {
6+
objectFit?: `fill` | `contain` | `cover` | `none` | `scale-down`
7+
objectPosition?: string
8+
}
9+
10+
export default class GatsbyImageWithIEPolyfill extends React.Component<
11+
GatsbyImageWithIEPolyfillProps
12+
> {}

0 commit comments

Comments
 (0)