mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
add blessed widget type
This commit is contained in:
Vendored
+27
-2
@@ -18,12 +18,37 @@ declare module 'react-blessed' {
|
||||
export function createBlessedRenderer(b: typeof Blessd): renderer;
|
||||
}
|
||||
|
||||
// relation to blessed export widgets
|
||||
declare namespace JSX {
|
||||
interface IntrinsicElements {
|
||||
'blessed-progressbar': any,
|
||||
'blessed-box': any,
|
||||
'blessed-text': any,
|
||||
'blessed-line': any,
|
||||
'blessed-scrollablebox': any,
|
||||
'blessed-scrollabletext': any,
|
||||
'blessed-bigtext': any,
|
||||
'blessed-list': any,
|
||||
'blessed-filemanager': any,
|
||||
'blessed-listtable': any,
|
||||
'blessed-listbar': any,
|
||||
'blessed-form': any,
|
||||
'blessed-input': any,
|
||||
'blessed-textarea': any,
|
||||
'blessed-textbox': any,
|
||||
'blessed-button': any,
|
||||
'blessed-form': any
|
||||
'blessed-checkbox': any,
|
||||
'blessed-radioset': any,
|
||||
'blessed-radiobutton': any,
|
||||
'blessed-table': any,
|
||||
'blessed-prompt': any,
|
||||
'blessed-question': any,
|
||||
'blessed-message': any,
|
||||
'blessed-loading': any,
|
||||
'blessed-log': any,
|
||||
'blessed-progressbar': any,
|
||||
'blessed-program': any,
|
||||
'blessed-terminal': any,
|
||||
'blessed-layout': any,
|
||||
'blessed-escape': any,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,9 @@ import * as React from 'react';
|
||||
import * as blessed from 'blessed';
|
||||
import { render } from 'react-blessed';
|
||||
|
||||
// Testing example from demos page
|
||||
// https://github.com/Yomguithereal/react-blessed/blob/master/examples/dashboard.jsx
|
||||
|
||||
const { Component } = React;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user