@cd-z/epub-constructor
Version:
This is a react library that creates an epub structure. This library only provides the file structure. To get a valid epub file it is needed to to create files from the provided data and compress them to a epub file.
10 lines (9 loc) • 382 B
TypeScript
/**
* Generates a CSS string based on the provided style object.
* If the style object is a string, it is returned as is.
* The style object is merged with a default style object.
*
* @param style - The style object to generate CSS from.
* @returns The CSS string representing the merged style object.
*/
export declare function createStyle(style?: string | object): string;