UNPKG

@becklyn/contentful-adapter

Version:

[![CI](https://github.com/Becklyn-Studios/contentful-adapter/actions/workflows/ci.yml/badge.svg)](https://github.com/Becklyn-Studios/contentful-adapter/actions/workflows/ci.yml)

12 lines (11 loc) 440 B
import { MigrationFunction } from "contentful-migration"; import { BackendLanguage } from "../config/types"; export interface ContentfulComponentMigrations { component: string; migrations: Record<string, MigrationFunction>; } export type ContentfulMigrationGenerator = (language: BackendLanguage) => ContentfulComponentMigrations; export interface ContentfulComponentMigration { key: string; migration: MigrationFunction; }