UNPKG

@editorjs/list

Version:

List Tool for EditorJS

9 lines (7 loc) 379 B
import { OldListData, ListData, OldChecklistData } from '../types/ListParams'; /** * Method that checks if passed data is related to the legacy format and normalizes it * @param data - data to be checked * @returns - normalized data, ready to be used by Editorjs List tool */ export default function normalizeData(data: ListData | OldListData | OldChecklistData): ListData;