jessestuart/gatsby-source-s3-image

View on GitHub
src/types/S3ImageAssetNode.ts

Summary

Maintainability
A
0 mins
Test Coverage
import ExifData from './ExifData'

/**
 * S3ImageAssetNode is a minimal wrapper composing the default Node
 * fields with those obtained from S3 -- initially just `Key`
 * and `ETag` (object digest), but the full map of Exif
 * properties are injected during the `extend-node-type` step.
 */
export default interface S3ImageAssetNode {
  id: string
  absolutePath: string
  LastModified: Date
  ETag: string
  Key: string
  EXIF: ExifData | null
  internal: {
    content: string
    contentDigest: string
    mediaType: string
    type: string
  }
}