AssetProps: {
    fields: {
        description?: {
            [key: string]: string;
        };
        file: {
            [key: string]: {
                contentType: string;
                details?: Record<string, any>;
                fileName: string;
                upload?: string;
                uploadFrom?: Record<string, any>;
                url?: string;
            };
        };
        title: {
            [key: string]: string;
        };
    };
    metadata?: MetadataProps;
    sys: EntityMetaSysProps;
}

Type declaration

  • fields: {
        description?: {
            [key: string]: string;
        };
        file: {
            [key: string]: {
                contentType: string;
                details?: Record<string, any>;
                fileName: string;
                upload?: string;
                uploadFrom?: Record<string, any>;
                url?: string;
            };
        };
        title: {
            [key: string]: string;
        };
    }
    • Optional description?: {
          [key: string]: string;
      }

      Description for this asset

      • [key: string]: string
    • file: {
          [key: string]: {
              contentType: string;
              details?: Record<string, any>;
              fileName: string;
              upload?: string;
              uploadFrom?: Record<string, any>;
              url?: string;
          };
      }

      File object for this asset

      • [key: string]: {
            contentType: string;
            details?: Record<string, any>;
            fileName: string;
            upload?: string;
            uploadFrom?: Record<string, any>;
            url?: string;
        }
        • contentType: string
        • Optional details?: Record<string, any>

          Details for the file, depending on file type (example: image size in bytes, etc)

        • fileName: string
        • Optional upload?: string

          Url where the file is available to be downloaded from, into the Contentful asset system. After the asset is processed this field is gone.

        • Optional uploadFrom?: Record<string, any>
        • Optional url?: string

          Url where the file is available at the Contentful media asset system. This field won't be available until the asset is processed.

    • title: {
          [key: string]: string;
      }

      Title for this asset

      • [key: string]: string
  • Optional metadata?: MetadataProps
  • sys: EntityMetaSysProps