Skip to content

Commit

Permalink
Merge pull request #69 from daniel100097/master
Browse files Browse the repository at this point in the history
Typescript types :D
  • Loading branch information
nitin42 committed Feb 23, 2019
2 parents 0c1040c + 3bbda63 commit 723a8e1
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
declare module 'terminal-in-react' {
import Component = React.Component;
import CSSProperties = React.CSSProperties;

export default class Terminal extends Component<{
style?: CSSProperties;
color?: string;
outputColor?: string;
backgroundColor?: string;
prompt?: string;
barColor?: string;
description?: {};
commands?: {};
msg?: string;
watchConsoleLogging?: boolean;
commandPassThrough?: (cmd: string, print: () => void) => void;
promptSymbol?: string;
plugins?: any[];
startState?: 'open' | 'maximised' | 'minimised' | 'closed';
showActions?: boolean;
hideTopBar?: boolean;
allowTabs?: boolean;
actionHandlers?: {
handleClose?: (toogleClose: () => void) => void;
handleMaximise?: (toggleMaximise: () => void) => void;
handleMinimise?: (toggleMinimise: () => void) => void;
};
}> {}
}

0 comments on commit 723a8e1

Please sign in to comment.