UNPKG

break-styled-lines

Version:

Add newlines to a string of text given a font style and width

13 lines (10 loc) 433 B
// Generated by dts-bundle-generator v5.9.0 export declare type TextDescriptor = { text: string; font?: string; }; declare function breakLinesEntry(text: string, width: number, font: string): string; declare function breakLinesEntry(text: string[], width: number, font: string): string[]; declare function breakLinesEntry(text: TextDescriptor[], width: number, font: string): string[]; export default breakLinesEntry; export {};