Files
static-cms/core/src/formats/FileFormatter.ts
Daniel Lautzenheiser 766009aa0d Bugfixes (#61)
- Fix react key issue with typed list preview children
- Added error outline to relation widget
- Added typing support to template previews
- Discard draft entry from store when navigating away from editor (This fixes an issue with the media library thinking it was still in the editor, causing it to upload media as draft)
- Properly type file formatters
- Fix local backup not working
2022-11-02 08:54:30 -04:00

9 lines
202 B
TypeScript

export abstract class FileFormatter {
abstract fromFile(content: string): object;
abstract toFile(
data: object,
sortedKeys?: string[],
comments?: Record<string, string>,
): string;
}