@bonniernews/abbe-api-utils
Version:
Utilities for converting to Abbe article format
11 lines (10 loc) • 449 B
TypeScript
import { Block, BlockStyle, Style } from "./types/types";
export declare const initBlock: () => Block;
export declare const createInlineStyleRanges: (styles: BlockStyle[]) => {
offset: number;
length: number;
style: Style;
}[];
export declare const validateStyle: (text: string, styles: BlockStyle[]) => void;
export declare const removeUndefinedProperties: (obj: any) => void;
export declare const objectIsEmpty: (obj: any) => boolean;