1
0
Fork 0
blog/src/@types/Image.d.ts

37 lines
634 B
TypeScript
Raw Normal View History

2021-03-06 02:58:10 +01:00
import { GatsbyImageProps, IGatsbyImageData } from 'gatsby-plugin-image'
2019-10-28 23:00:55 +01:00
2021-03-06 02:58:10 +01:00
export interface ImageProps extends GatsbyImageProps {
2019-10-28 23:00:55 +01:00
title?: string
original?: { src: string }
2021-03-04 01:20:39 +01:00
className?: string
2019-10-28 23:00:55 +01:00
}
2021-03-06 02:58:10 +01:00
export interface ImageNode extends IGatsbyImageData {
fields?: {
exif?: Exif
2019-10-28 23:00:55 +01:00
}
}
export interface ExifFormatted {
2019-10-28 23:00:55 +01:00
iso: string
model: string
fstop: string
shutterspeed: string
focalLength: string
lensModel: string
exposure: string
gps: {
latitude: string
longitude: string
}
}
export interface Exif {
2021-11-28 20:05:38 +01:00
formatted: ExifFormatted
2019-11-04 19:38:02 +01:00
exif?: any
image?: any
thumbnail?: any
gps?: any
iptc?: any
}