@becklyn/contentful-adapter
Version:
[](https://github.com/Becklyn-Studios/contentful-adapter/actions/workflows/ci.yml)
12 lines (11 loc) • 440 B
TypeScript
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;
}