mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 19:51:53 +00:00
[@types/blessed] Add top level parseTags() function (#41026)
This commit is contained in:
@@ -778,6 +778,12 @@ setTimeout(() => {
|
||||
screen.render();
|
||||
}, 3000);
|
||||
|
||||
// https://github.com/chjj/blessed#helpers
|
||||
|
||||
blessed.escape('{bold}{/bold}');
|
||||
blessed.parseTags('{bold}hi{/bold}');
|
||||
blessed.generateTags({ fg: 'red' }, 'red text');
|
||||
|
||||
// https://github.com/chjj/blessed/blob/master/test/program-mouse.js
|
||||
|
||||
const program = blessed.program({
|
||||
|
||||
Vendored
+1
@@ -3469,6 +3469,7 @@ export function escape(text: string): string;
|
||||
export function stripTags(text: string): string;
|
||||
export function cleanTags(text: string): string;
|
||||
export function generateTags(style: any, text: string): string;
|
||||
export function parseTags(text: string, screen?: Widgets.Screen): string;
|
||||
|
||||
export const colors: {
|
||||
match(hexColor: string): string;
|
||||
|
||||
Reference in New Issue
Block a user